Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 9
- b = 6
- print("1. dodawanie")
- print("2. odejmowanie")
- print("3. mnozenie")
- print("4. dzielenie")
- print("5. potegowanie")
- wybor = int(input("wybierz co chcesz zrobic: "))
- if wybor == 1:
- print("wynik: ", a + b)
- elif wybor == 2:
- print("wynik: ", a - b)
- elif wybor == 3:
- print("wynik: ", a * b)
- elif wybor == 4:
- print("wynik: ", a / b)
- elif wybor == 5:
- print("wynik: ", a ** b)
- else:
- print("nie ma takiej liczby")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement