PYTHON
Write a Program to Display the result of the Student with there Percentage and Grade
rno = int(input("Enter the roll no :- ")) name = input("Enter the name :- ") sub1 = int(input("Enter the marks of English :- ")) sub2 = int(input("Enter the marks of English :- ")) sub3 = int(input("Enter the marks of English :- ")) sub4 = int(input("Enter the marks of English :- ")) sub5 = int(input("Enter the marks of English :- ")) tot = sub1+sub2+sub3+sub4+sub5 perc = tot//5 print("The Total marks is :- ",tot) print("The Percentage is :- ",perc) if perc>=90: print("Grade A") elif perc>=80: print("Grade B") elif perc>=60: print("Grade C") elif perc>=50: print("Grade D") elif perc >=35: print("Grade E") else: print("Grade F")
OUTPUT….
