Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- income = float(input())
- grade = float(input())
- minsal = float(input())
- contr = float(0)
- if income < minsal:
- contr += 1
- if grade > 4.5:
- contr += 1
- if grade >= 5.5:
- contr += 5
- if contr == 2:
- print(f'You get a Social scholarship {math.floor(0.35 * minsal)} BGN')
- elif contr == 5 or contr == 6:
- print(f'You get a scholarship for excellent results {math.floor(grade * 25)} BGN')
- elif contr == 7:
- if math.floor(0.35 * minsal) > math.floor(grade * 25):
- print(f'You get a Social scholarship {math.floor(0.35 * minsal)} BGN')
- else:
- print(f'You get a scholarship for excellent results {math.floor(grade * 25)} BGN')
- else:
- print(f'You cannot get a scholarship!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement