Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> print("Калькулятор") print("1)Умножение 2)Деление 3)Сложение 4)Вычитание 5)Степень") choose = int(input("Выберите действие ")) while choose == 1: print("Умножение") x = int(input("Введите первое число ")) y = int(input("Введите второе число ")) z = x * y print("Результат", z) while choose == 2: print("Деление") x = int(input("Введите первое число ")) y = int(input("Введите второе число ")) z = x / y print("Результат", z) while choose == 3: print("Сложение") x = int(input("Введите первое число ")) y = int(input("Введите второе число ")) z = x + y print("Результат", z) while choose == 4: print("Вычитание") x = int(input("Введите первое число ")) y = int(input("Введите второе число ")) z = x - y print("Результат", z) while choose == 5: print("Степень") x = int(input("Введите первое число ")) y = int(input("Введите Степень ")) z = x ** y print("Результат", z)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question