-
Notifications
You must be signed in to change notification settings - Fork 0
/
func_calculator.py
26 lines (24 loc) · 1.01 KB
/
func_calculator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
def square(a=int(input("Enter any integer"))):
a=int(input("Enter any integer"))
print(f"The square of the number is {a*a} ")
def add() :
a=int(input("Enter any integer"))
b=int(input("Enter any number"))
print(f"The sum of the numbers is {a+b} ")
def sub():
a=int(input("Enter large integer"))
b=int(input("Enter small number"))
print(f"The sutraction of the numbers is {a-b} ")
def product():
a=int(input("Enter first number")) ,
b=int(input("Enter second number"))
print(f"The product of the numbers is {a*b} ")
def division():
a=int(input("Enter first number"))
b=int(input("Enter second number"))
print(f"The product of the numbers is {a/b} ")
def remainder():
a=int(input("Enter the dividend"))
b=int(input("Enter the diviser "))
print(f"The remainder of the division is {a%b} ")
m=input("What operation would you like to perform \n Addition(A),Subtraction(S),Multiplication(M),Division(D),Square(S),Remainder(R) \n Use code given in brackets as an input\n")