- 2

Write a program to read two numbers and print their quotient and remainder.

please urgent anybody can do this ?????!!!!

17th Sep 2018, 2:14 PM
Sparshika Verma
Sparshika Verma - avatar
5 Answers
+ 6
For remainder use the modulo operator '%' For quotient use this one '//' N1=float(input("Enter 1st number\n")) print(N1%2) #for remainder print(N1//2) #for quotient
17th Sep 2018, 2:35 PM
Lord Krishna
Lord Krishna - avatar
+ 7
It's a trivial task someone who knows enough python can, but 1st show your effort and where you are stuck. Asking for solutions without any effort doesn't work. As the previous linked post says Q&A is for asking questions not for getting your work done.
17th Sep 2018, 2:23 PM
Lord Krishna
Lord Krishna - avatar
+ 2
You've used modulo (%) twice. One of your statements should use floor division (//)
17th Sep 2018, 3:59 PM
benjamin
17th Sep 2018, 2:25 PM
Sparshika Verma
Sparshika Verma - avatar
0
I'm not getting this.
17th Sep 2018, 2:25 PM
Sparshika Verma
Sparshika Verma - avatar