Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import *
- def start():
- print('')
- what = input('Что будем делать? (+,-, если ничего то ничего не пиши) :')
- if what == "+":
- print('')
- a = float(input('Введи первое число: '))
- b = float(input('Введи второе число: '))
- c = a+b
- print ("Ответ: " + str(c))
- elif what == "-":
- print('')
- a = float(input('Введи первое число: '))
- b = float(input('Введи второе число: '))
- c = a-b
- print ("Ответ: " + str(c))
- else:
- print('')
- print('Закрытие...')
- start()
- while what in ["+","-"]:
- start()
Advertisement
Add Comment
Please, Sign In to add comment