Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- income = float(input())
- sreden_uspeh = float(input())
- min_salary = float(input())
- social_scholarship = 0
- scholarship = 0
- if income < min_salary and sreden_uspeh > 4.50:
- social_scholarship = min_salary * 0.35
- if sreden_uspeh >= 5.50:
- scholarship = sreden_uspeh * 25
- scholarship = int(scholarship)
- social_scholarship = int(social_scholarship)
- if (income >= min_salary and sreden_uspeh < 5.50) or (income < min_salary and sreden_uspeh < 4.5):
- print('You cannot get a scholarship!')
- elif social_scholarship > scholarship:
- print(f'You get a Social scholarship {social_scholarship} BGN')
- elif scholarship > social_scholarship:
- print(f'You get a scholarship for excellent results {scholarship} BGN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement