Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- income = float(input())
- average_success = float(input())
- min_salary = float(input())
- social_scholarship = int(min_salary * 0.35)
- excellent_scholarship = int(average_success * 25)
- if average_success < 4.50:
- print("You cannot get a scholarship!")
- elif 4.50 <= average_success < 5.50 and income >= min_salary:
- print("You cannot get a scholarship!")
- elif 4.50 <= average_success < 5.50 and income < min_salary:
- print(f"You get a Social scholarship {social_scholarship} BGN")
- elif average_success >= 5.50 and income < min_salary and social_scholarship > excellent_scholarship:
- print(f"You get a Social scholarship {social_scholarship} BGN")
- elif average_success >= 5.50 and income < min_salary and social_scholarship <= excellent_scholarship:
- print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
- elif average_success >= 5.50 and income >= min_salary:
- print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
- # или с използване на else: вместо последния elif
- # else:
- # print(f"You get a scholarship for excellent results {excellent_scholarship} BGN")
Advertisement
Add Comment
Please, Sign In to add comment