-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit_test.py
28 lines (23 loc) · 881 Bytes
/
git_test.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
class math_func:
def __init__(self, first_value, second_value):
self.first_value = first_value
self.second_value = second_value
def add(first_value, second_value):
# print (first_value + second_value)
print ("Sum of two value is " , first_value + second_value)
def sub (first_value, second_value):
# print (first_value - second_value)
print("Defference of two value is ", first_value - second_value)
def mult (first_value, second_value):
m = first_value * second_value
print("Multiplication of two value is ", m)
def div (first_value, second_value):
d = first_value / second_value
print("Devision of two value is ", d)
a = int(input("Please enter first value"))
b = int(input("Please enter second value"))
c = math_func
c.add(a,b)
c.sub(a,b)
c.mult(a,b)
c.div(a,b)