-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnamta.while.py
More file actions
63 lines (52 loc) · 1.3 KB
/
namta.while.py
File metadata and controls
63 lines (52 loc) · 1.3 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
for i in range(10000):
a=int(input("\npress 1 for sub:\n press 2 for add \n press 3 for div\npress 4 for gun\npress 5 for modulus\npress 6 for gor\npress 7 for Rectangle area count\n press 7 for :\npress 8 for calender\n\n\n Enter your choice ="))
if a == 1:
b=int(input())
c=int(input())
d=b-c
print(d)
elif a == 2:
e=int(input())
f=int(input())
g=e+f
print(g)
elif a == 3:
h=int(input())
i=int(input())
j=h/i
print(j)
elif a == 4:
k=int(input())
l=int(input())
m=k*l
print(m)
elif a == 5:
n=int(input())
o=int(input())
p=n%o
print(p)
elif a == 6:
q=int(input())
r=int(input())
s=(q+r)/2
print(s)
elif a == 4:
t=int(input())
u=int(input())
v=t*u
print(v)
elif a == 7:
w=int(input())
x=int(input())
y=3.1416*w*x
print(y)
elif a == 8:
import calendar
ki=int(input())
li=int(input())
#month=int(input())
mo=calendar.month(ki,li)
print(mo)
else:
a<7
print("Hihi kam hobe na !")