Skip to content

Commit

Permalink
Calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
MertcanYavasoglu committed Sep 20, 2023
1 parent 231ed4c commit 5ad9314
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Calculator/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
num1 = float(input("İlk sayiyi giriniz: "))
num2 = float(input("İkinci sayiyi giriniz: "))
operation = input("+ - x / işlemlerinden istediğinizi giriniz: ")

if (operation == '+'):
output = num1 + num2
elif (operation == '-'):
output = num1 - num2
elif (operation == 'x'):
output = num1 * num2
elif (operation == '/'):
output = num1 / num2
else:
output = "Error"

print(output)



0 comments on commit 5ad9314

Please sign in to comment.