- Write a program to enter marks of five subjects and calculate total, average and percentage.
Write a program to enter marks of five subjects and calculate total, average and percentage.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Vote up the answer and support us
#python print("Enter the marks of five subjects: ") sub1 = float (input ()) sub2 = float (input ()) sub3 = float (input ()) sub4 = float (input ()) sub5 = float (input ()) total = sub1 + sub2 + sub3 + sub4 + sub5 average = total / 5 percentage = (total / 500) * 100 print ("\nThe Total marks is: \t", total, "/ 500.00") print ("\nThe Average marks is: \t", average) print ("\nThe Percentage is: \t", percentage,"%")