Program to find the grade of a student
=================== GRADE OF A STUDENT ======================
a=input("Enter the Percentage of Mark Obtained by the Student : ")
if a>90:
print "A+"
elif a>80:
print "A"
elif a>70:
print "B+"
elif a>60:
print "B"
elif a>50:
print "C"
elif a<=50:
print "Failed"
====================== OUTPUT ================================
Enter the Percentage of Mark Obtained by the Student : 100
A+
====================== OUTPUT ================================
Enter the Percentage of Mark Obtained by the Student : 79
B+
====================== OUTPUT ================================
Enter the Percentage of Mark Obtained by the Student : 52
C
====================== OUTPUT ================================
Enter the Percentage of Mark Obtained by the Student : 46
Failed
==============================================================
No comments