-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7 prog.py
58 lines (52 loc) · 995 Bytes
/
7 prog.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
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
print("enter 2 integers")
a=int(input())
b=int(input())
sum1=a+b
sub=a-b
mul=a*b
div=a/b
power=a**b;
mod=a%b;
int_division=a//b
print("sum is:",sum1)
print("sub is:",sub)
print("mul is:",mul)
print("div is:",div)
print("int division is:",int_division)
print("power is:",power)
print("modulus is:",mod,"\n")
print("enter 2 float")
c=float(input())
d=float(input())
sum1=c+d
sub=c-d
mul=c*d
div=c/d
int_divison=c//d
power=c**d
mod=c%d
print("sum is:",sum1)
print("sub is:",sub)
print("mul is:",mul)
print("div is:",div)
print("int division is:",int_division)
print("power is:",power)
print("modulus is:",mod,"\n")
print("enter integer")
e=int(input())
print("enter float")
f=float(input())
sum1=e+f
sub=e-f
mul=e*f
div=e/f
int_divison=e//f
power=e**f
mod=e%f
print("sum is:",sum1)
print("sub is:",sub)
print("mul is:",mul)
print("div is:",div)
print("int division is:",int_division)
print("power is:",power)
print("modulus is:",mod)