All the Operators

Lab Python Beginner 10 points

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
Sample input available Sample output available
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)
Output
Answer
HOME LEARN COMMUNITY DASHBOARD