Skip to content

Commit aa18dae

Browse files
Calculator.py
1 parent d63604d commit aa18dae

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Calculator

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#Made My Anirudha Kumar
2+
while(True):
3+
print("Select Your Operator")
4+
print("1. Adition")
5+
print("2. Subtaction")
6+
print("3. Multiplication")
7+
print("4. Division")
8+
operator = input("Select your operator (1/2/3/4) : ")
9+
x = int(input("Enter Your First Number : "))
10+
y = int(input("Enter Your Secound Number : "))
11+
if operator == "1":
12+
print("Sum Of These Numbers Is : ", int(x) + int(y))
13+
if operator == "2":
14+
print("Subtracted Number is : ", int(x)-int(y))
15+
if operator == "3":
16+
print("Multiplication of Number is : ", int(x)*int(y))
17+
if operator == "4":
18+
print("Divided Number is : ", int(x)/int(y))
19+
else:
20+
z = input("Press Y to countinue And N to stop : ")
21+
if z == "N":
22+
print("Thanks ... See You Again")
23+
break

0 commit comments

Comments
 (0)