Question

write a python program that allows the user to enter two integer values, and displays the...

write a python program that allows the user to enter two integer values, and displays the results when each of the following arithmetic operators are applied

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Python program :-

x = input("Enter input 1: ")
y = input("Enter input 2: ")

print("Arithmatic operation :")
print("Sum :")
z = x+y
print(z)
print("Difference :")
z = x-y
print(z)
print("Multiply :")
z = x-y
print(z)
print("Division :")
z = x/y
print(z)
print("Power :")
z = pow(x,y)
print(z)

Output :-

Spython main.py Enter input 1: Enter input 2: Arithmatic operation Sum 12 Difference 10 Multiply Division Power 100

Add a comment
Know the answer?
Add Answer to:
write a python program that allows the user to enter two integer values, and displays the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT