Answer to Question #336680 in Python for Xix

Question #336680

Create a program that will accept two numbers and print the product, quotient, sum, difference, remainder, exponent, and floor division. First number will be the left operand for quotient, difference, remainder, exponent, and floor division.

1
Expert's answer
2022-05-03T14:18:46-0400
n1 = int(input('Number 1: '))
n2 = int(input('Number 2: '))

print(f'Product: {n1 * n2}')
print(f'Quotient: {n1 / n2}')
print(f'Sum: {n1 + n2}')
print(f'Difference: {n1 - n2}')
print(f'Remainder: {n1 % n2}')
print(f'Exponent: {n1 ** n2}')
print(f'Floor division: {n1 // n2}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS