Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import floor
- income = float(input())
- score = float(input())
- salary = float(input())
- if score >= 4.5 or score >= 5.5 or income < salary:
- if score >= 4.5 and income < salary:
- scholarship = 0.35 * salary
- print(f'You get a Social scholarship {floor(scholarship)} BGN')
- elif score >= 5.5:
- scholarship = 25 * score
- print(f"You get a scholarship for excellent results {floor(scholarship)} BGN")
- elif income > score:
- print("You cannot get a scholarship!")
- elif score >= 4.5 and income < salary and score >= 5.5:
- scholarship_soc = 0.35 * salary
- scholarship_ex = 25 * score
- if scholarship_ex > scholarship_soc:
- print(f'You get a Social scholarship {floor(scholarship_ex)} BGN')
- elif scholarship_ex < scholarship_soc:
- print(f'You get a Social scholarship {floor(scholarship_soc)} BGN')
- elif scholarship_ex == scholarship_soc:
- print(f'You get a Social scholarship {floor(scholarship_ex)} BGN')
- elif score < 4.5 or income > salary:
- print("You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement