Sichanov

wrong result1

Nov 9th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. from math import floor
  2.  
  3. income, grade, min_salary = [float(input()) for _ in range(3)]
  4. social_scholarship = min_salary * 0.35
  5. excellent_scholarship = grade * 25
  6.  
  7. if income < min_salary and 4.5 < grade < 5.5:
  8.       print(f'You get a Social scholarship {floor(social_scholarship)} BGN')
  9. elif grade >= 5.5:
  10.       print(f'You get a scholarship for excellent results {floor(excellent_scholarship)} BGN')
  11. else:
  12.       print('You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment