While loop in c/c++

main()
{
int i=1;
While()
{
printf(“%d”,i++)
If(i>10)
Break;
}
}

Tutorial answer:
Syntax error

Debugging solution:
While loop must contain condition but in these while loop does not contain condition so it will display error,

Related post