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