Find out errors if any
while(ctr! = 10);{
ctr=1;
sum= sum+a;
ctr= ctr+1;
}
Anonymous:
What is the program for??
Answers
Answered by
3
Yes...there will not be semi colon ';' after while statement.
Answered by
4
there no use of semi colon after while loop
.
ctr=1; must be out side the loop
.
sum must be declared 0 out side the loop
.
ctr=1; must be out side the loop
.
sum must be declared 0 out side the loop
Similar questions