All the Operators
Completed
Read two positive integers a and b. Print, one per line: a+b, a-b, a*b, a/b, a//b, a%b and a**b.
Input
Two integers on separate lines.
Output
Seven lines.
Example
Input
7 2
Output
9 5 14 3.5 3 1 49
Editor
Python
Hints
/ always gives a float; // gives the whole-number part.
% is the remainder and ** is power.
Solution explanation
/ is true division (always a float), // is floor division, % is the remainder and ** is exponentiation.
Show solution
a = int(input())
b = int(input())
print(a + b)
print(a - b)
print(a * b)
print(a / b)
print(a // b)
print(a % b)
print(a ** b)