Computer Science, asked by sandeepmorya358, 11 months ago

Write the programme to accept the percentage of a student and displaythe grade accordingly
Percentage;85 -grade 'A'
Percentage;70<=85 - grade 'B'
Percentage;60<=70 - grade 'C'
Percentage;45<=60 - grade 'D'
Otherwise - grade 'E'

Answers

Answered by Swetha03K
1

p=int(input("Enter your percentage:"))

if p>85:

     print("Grade : A")

elif 70<p<=85:

     print("Grade : B")

elif 60<p<=70:

    print("Grade : C")

elif 45<p<=60:

     print("Grade : D")

else:

     print("Grade : E")

Similar questions