(adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-2960223314593660", enable_page_level_ads: true }); Program to find the grade of a student - TecGlance

Header Ads

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

Powered by Blogger.