Calculate average of 10 student using c++
Object: In this Post I am discuss how to write a c++ program to calculate average of 10 student and the basic understanding of while loop. Formula: total += marks; average=total/10; Source Program: In in program declare fore variable called i=1 , marks , total=0 , average enter the marks for each student and store the total marks as in variable and calculate the average for 10 student. #include "iostream" using namespace std; void main () { int i=1 , marks , total=0 , average; while ( i <= 10 ) { cout<< "Enter Marks Of " <<i<< " Student = " ; cin>>marks; total += marks; ...