-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeorgi's calculator.py
More file actions
29 lines (26 loc) · 1.01 KB
/
Georgi's calculator.py
File metadata and controls
29 lines (26 loc) · 1.01 KB
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
29
"""Prosta programka e napisana na latinica, dokazvaiki svoqta avtentichnost!
Slednata programa sama kalkulira dve proizvolni i izvurshva matematicheski deistviq na bazata na 4 funkcii s butonite ot 1 do 4 !
Priqtno testvane i do skoro! XD"""
number1 = float(input("Molq,vavedete purvata cifra >>> "))
number2 = float(input("Molq,vavedete vtorata cifra >>> "))
print( """
Menu
Kakvo jelaete da napravite?
Natisnete 1 za da suberete stoinostite.
Natisnete 2 za da izvadite stoinostite.
Natisnete 3 za da razdelite stoinostite.
Natisnete 4 za da umnojite stoinostite.
""" )
selection = int(input("Izberete vashata matematicheska funkcuq >>> "))
if selection == 1:
result = number1 + number2
elif selection == 2:
result = number1 - number2
elif selection == 3:
result = number1 / number2
elif selection == 4:
result = number1 * number2
else:
result = "Greshka! Programata ne podurja vashata komanda!"
print(result)
input("Natisnete <ENTER> za izhod! Zapovqdaite otnovo!")