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())
- scholarship_soc = 0.35 * salary
- scholarship_ex = 25 * score
- if income < salary and score > 4.5:
- if score >= 5.50:
- if scholarship_ex >= scholarship_soc:
- print(f'You get a scholarship for excellent results {floor(scholarship_ex)} BGN')
- elif scholarship_ex < scholarship_soc:
- print(f'You get a Social scholarship {floor(scholarship_soc)} BGN')
- else:
- print(f'You get a Social scholarship {floor(scholarship_soc)} BGN')
- elif income > salary and score >= 5.50:
- print(f'You get a scholarship for excellent results {floor(scholarship_ex)} BGN')
- else:
- print("You cannot get a scholarship!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement