-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd.py
More file actions
40 lines (29 loc) · 771 Bytes
/
add.py
File metadata and controls
40 lines (29 loc) · 771 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
def add():
a = int(input("enter a number:"))
b = int(input("enter number:"))
print(a+b)
print(f"addition : {a} + {b} = {a+b}")
add()
def sub():
a = int(input("enter a number:"))
b = int(input("enter number:"))
print(a-b)
print(f"addition : {a} - {b} = {a-b}")
sub()
def mult():
a = int(input("enter a number:"))
b = int(input("enter number:"))
print(a*b)
print(f"addition : {a} * {b} = {a*b}")
mult()
def div():
a = int(input("enter a number:"))
b = int(input("enter number:"))
print(a/b)
print(f"addition : {a} / {b} = {a/b}")
div()
def hrtomin():
a = int(input("enter a number:"))
print(a*60)
print(f"addition : {a} * 60 = {a*60}")
hrtomin()