Advertisement
Guest User

idealyniy ves.py

a guest
Jul 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. vozrast=int(input('Введите Ваш возраст: '))
  2. if(vozrast<40):
  3.     rost=int(input('Введите Ваш рост: '))
  4.     ves=rost-110
  5.     print('Ваш идеальный вес '+str(ves))
  6. else:
  7.     rost=int(input('Введите Ваш рост: '))
  8.     ves=rost-100
  9.     print('Ваш идеальный вес '+str(ves))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement