0

What is the mistake in this program ?? :)

#include <iostream> using namespace std; int main() '{ int counter=1; int grade,sum; sum=0; grade=0; while(counter<=6) {cout<<"the grade of student "<<counter<<endl; cin>>grade; sum=sum+grade; counter++ } cout<<"the average is ="<<sum/6<<endl; return 0

18th Feb 2017, 6:16 AM
Touqa S Hassan
Touqa S Hassan - avatar
3 Respostas
+ 1
thank you Moksh for ur help 😊 iam grateful to u 😊
18th Feb 2017, 6:24 AM
Touqa S Hassan
Touqa S Hassan - avatar