#include <conio>
void main()
{
int total;
int gradeCounter;
int grade;
int average;
total=0;
gradeCounter=1;
while(gradeCounter<=10){
cout<<"Enter
grade: "<<endl;
cin>>grade;
total=total+grade;
gradeCounter=gradeCounter+1;
}
average=total/10;
cout<<"Class
average is "<<average<<endl;
getch();
}
Output Result
1 comments:
hello Yasir thanks this Post is very help full
ReplyPost a Comment