Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input("Введите число a:"))
- b = int(input("Введите число b:"))
- c = int(input("Введите число c:"))
- d = int(input("Введите число d:"))
- e = int(input("Введите число e:"))
- f = int(input("Введите число f:"))
- g = int(input("Введите число g:"))
- k = int(input("Введите число k:"))
- p = int(input("Введите число p:"))
- if f==0:
- print("f can not be 0")
- quit()
- elif a==0:
- print ("a can not be 0")
- quit()
- ex1 = a *c + b * c + d * e / f
- ex2 = k + p * b / a + g
- ex3 = 4 / 5
- ex4 = ex1 / ex2 * ex3
- if ex2 == 0:
- print ("error")
- quit()
- else:
- print ("Ответ:", "", ex4)
Add Comment
Please, Sign In to add comment