We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Arithmetic Operators
Arithmetic Operators
Sort by
recency
|
1219 Discussions
|
Please Login in order to post a comment
a = int(input()) b = int(input()) plus = a+b destruction = a-b product = a*b print(plus);print(destruction);print(product)
Read two integers from STDIN
a = int(input()) b = int(input())
Print the results
print(a + b) # Sum print(a - b) # Difference print(a * b) # Product
Python is such a powerful and beginner-friendly language! 🐍 Perfect for everything from data analysis to web development. t20 exchange ID
if a >= b: print(a+b , a-b ,a*b ,sep="\n") else: print(b+a,b-a,b*a,sep="\n")
For Python3 Platform