Program for student grading - Coder's point

Saturday, June 1, 2019

Program for student grading

 a=int(input("enter marks for Maths: "))  
 b=int(input("enter marks for AT: "))  
 c=int(input("enter marks for OS: "))  
 avg=(a+b+c)/3  
 print("the average is:",avg)  
 if(avg>=75):  
  print("Grade = distinction")  
 elif(avg>=60):  
  print("Grade = first class")  
 elif(avg>=50):  
  print("Grade = second class")  
 else:  
  print("Grade = pass")  
OUTPUT:
Enter marks for maths:
Enter marks for AT:
Enter marks for OS:
the average is : 73.0
Grade = first class

No comments:

Post a Comment