Advertisement
Spocoman

Scholarship

Mar 15th, 2022
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. import math
  2.  
  3. income = float(input())
  4. average = float(input())
  5. salary = float(input())
  6.  
  7. social = math.floor(salary * 0.35)
  8. excellent = math.floor(average * 25)
  9.  
  10. if average >= 5.5:
  11.     if excellent >= social or income > salary:
  12.         print(f"You get a scholarship for excellent results {excellent} BGN")
  13.     else:
  14.         print(f"You get a Social scholarship {social} BGN")
  15. elif 4.5 < average < 5.5 and income < salary:
  16.     print(f"You get a Social scholarship {social} BGN")
  17. else:
  18.     print("You cannot get a scholarship!")
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement