Join ExamsbookAnswer :
Point out the error, if any, in the while loop.
main()
{
int i = 1;
while ()
{
printf ( "%d", i++);
if (i >10)
break ;
}
}5
Q: Point out the error, if any, in the while loop. main() { int i = 1; while () { printf ( "%d", i++); if (i >10) break ; } }
- Show AnswerHide Answer
- Workspace
Answer :
Explanation :
The condition in the while loop is a must.