Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow

Lab Exercise

1. Write a program that accepts the marks of 5 subjects and finds the sum and percentage of marks obtained by the students.

Sample Input and Output

Stdin Inputs:

82 79 84 93 88

Sample Result:

Input first subject marks: 82
Input second subject marks: 79
Input third subject marks: 84
Input forth subject marks: 93
Input fifth subject marks: 88
Total marks: 426
Percentage: 85.20 %

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top