Write a C++ program to calculate the marks of any 3 subjects and also calculate and print the average of the the marks.
Answers
Answered by
4
Answer:
In above program, we first ask user to enter the number of subjects and store it in variable "subjects". Then using a for loop, we take the marks of each subject as input from user and add it to variable "total". After for loop, we will have total marks of all subjects in variable "total
Similar questions