- 2
Write a program to read two numbers and print their quotient and remainder.
please urgent anybody can do this ?????!!!!
5 Respostas
+ 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
+ 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.
+ 2
You've used modulo (%) twice. One of your statements should use floor division (//)
0
I'm not getting this.