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