WRITE A PYTHON CODE WHICH TAKES TWO NUMBERS AND PRINT THEIR QUOTIENT AND REMAINDER.PLZ ANSWER.... THIS NO SPAM I NEED.... THIS
Answers
Answered by
0
# Python program to take two numbers and print
# their quotient and remainder
# Get the first and second number:
# int() function converts the string type input to an decimal base-10 integer
firstNum = int (input ("Enter the first number: "))
secondNum = int (input ("Enter the second number: "))
quotient = a // b # Floor function must be used to get whole integer.(quotient)
remainder = a % b # Modulus(%) is used to find remainder.
# Print output
print("Quotient is: ", quotient)
print("Remainder is: ", remainder)
Similar questions