Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

MY PROGRAMMES

Saturday, April 22, 2023

MARKS PERCENTAGE WITH GRADE

 m=input("Enter the name of child  = ")
x=0
for i in range (1,6):
    x+=int(input("Enter the marks of subject = "))
n=x/5
if (n>0 and n<=30):print("Your Name =",m,"\n","Your percentage =",n,"\n","Your grade = D")
elif (n>=31 and n<=60):print("Your Name =",m,"\n","Your percentage =",n,"\n","Your grade = C")
elif (n>=61 and n<=80):print("Your Name =",m,"\n","Your percentage =",n,"\n","Your grade = B")
elif (n>=81 and n<=90):print("Your Name =",m,"\n","Your percentage =",n,"\n","Your grade = A2")
elif (n>=91 and n<=100):print("Your Name =",m,"\n","Your percentage =",n,"\n","Your grade = A1")
else: print(end="")