Conditional statements - exercise - 08. Scholarship
Здравейте,
Следният код ми дава 87/100 в Judge. Може ли някой да открие кой тест е грешен?
Благодаря предварително!
import math
income = float(input())
gpa = float(input())
min_wage = float(input())
social = 0.35 * min_wage
excellent = gpa * 25
if income < min_wage:
if (gpa > 4.50) and (gpa < 5.50):
print(f"You get a Social scholarship {math.floor(social)} BGN")
elif gpa >= 5.50:
if excellent >= social:
print(f"You get a scholarship for excellent results {math.floor(excellent)} BGN")
else:
print(f"You get a Social scholarship {math.floor(social)} BGN")
elif (income >= min_wage) and (gpa >= 5.50):
print(f"You get a scholarship for excellent results {math.floor(excellent)} BGN")
else:
print("You cannot get a scholarship!")