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