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
|
1063 Discussions
|
Please Login in order to post a comment
if name == 'main': a = int(input().strip()) b = int(input().strip()) print(f"{a+b}\n{a-b}\n{a*b}")
observe the print statement, it is quite concise
if name == 'main': a = int(input()) b = int(input()) print(a + b) print(a - b) print(a * b)
a = int(input()) b = int(input()) print(a+b) print(a-b) print(a*b)
i just wrote a=int(input("enter first no.: ")) and my test case failed
a+b a-b a*b print(a+b) print(a-b) print(a*b)