Skip to content

Commit cb07eeb

Browse files
authored
Merge pull request #1 from code4policy/calculator
Calculator
2 parents cede375 + 00d09a4 commit cb07eeb

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

calculator.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,34 @@ def subtract(a,b):
1010
def divide(a,b):
1111
return a/b
1212

13+
print("I'm going use the calculator functions to multiply 10 and 2")
14+
c=multiply(10,2)
15+
print(c)
16+
17+
print("I'm going use the calculator functions to add 10 and 2")
18+
d = add(10,2)
19+
print(d)
20+
21+
print("I'm going use the calculator functions to subtract 10 and 2")
22+
e = subtract(10,2)
23+
print(e)
24+
25+
print("I'm going use the calculator functions to divide 10 and 2")
26+
f = divide(10,2)
27+
print(f)
1328

1429
print("I'm going use the calculator functions to multiply 5 and 6")
1530
x = multiply(5,6)
16-
print(x)
31+
print(x)
32+
33+
print("I'm going use the calculator functions to add 5 and 6")
34+
y = add(5,6)
35+
print(y)
36+
37+
print("I'm going use the calculator functions to subtract 5 and 6")
38+
a = subtract(5,6)
39+
print(a)
40+
41+
print("I'm going use the calculator functions to divide 5 and 6")
42+
b = divide(5,6)
43+
print(b)

0 commit comments

Comments
 (0)