def grade_student(marks):
if marks >= 90:
return "A"
elif marks >= 80:
return "B"
elif marks >= 70:
return "C"
elif marks >= 60:
return "D"
elif marks >= 50:
return "E"
else:
return "F"
marks = float(input("Enter the marks of the student: "))
grade = grade_student(marks)
print(f"The grade of the student is: {grade}")
#source code --> clcoding.com
0 Comments:
Post a Comment