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