Skip to content
Permalink
Browse files
Add files via upload
  • Loading branch information
malhotrt committed Nov 26, 2018
1 parent 42bcfe9 commit c745e7f76b39fdada34f717cfd245bd2f11cba56
Showing 1 changed file with 4 additions and 4 deletions.
@@ -7,13 +7,13 @@ function calcuator()
choice = input("enter choice (A/B/C/D")
X1= int(input("Enter first number: "))
X2= int (input("Enter second number "))
if choice == '1'
if choice == 'A'
print(X1, "+", X2, "=", add(X1, X2))
elif choice =='2'
elif choice =='B'
print (X1, "-", X2, "=", subtract (X1, X2))
elif choice == '3'
elif choice == 'C'
print(X1, "*", X2, "=", multiply(X1, X2))
elif choice== '4'
elif choice== 'D'
print(X1, "/", X2, "=", divide(X1, X2))
else:
print(syntax error)

0 comments on commit c745e7f

Please sign in to comment.