Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Введи число 1")
- n1 = io.read("*number")
- print("Введи число 2")
- n2 = io.read("*number")
- print("Введи операцию")
- print("1 - Сумма")
- print("2 - Вычитание")
- print("3 - Умножение")
- print("4 - Деление")
- type = io.read("*number")
- if type == 1 then
- print(n1 + n2)
- elseif type == 2 then
- print(n1 - n2)
- elseif type == 3 then
- print(n1 * n2)
- elseif type == 4 then
- print(n1 / n2)
- end
- print("Спасибо за использывание!")
Advertisement
Add Comment
Please, Sign In to add comment