for (a=1; a<=100; a++) printf ("%d\n", a * a);
a=1; while (a<=100) { printf ("%d\n", a * a); a++; }
For Linux,,,
It will show syntax error.. you can not write like that..
Correct Syntax is;
for(initialization ; condition checking ; action)
while(i<10); { i++; printf("%d,\n", i); }
Loop does not run for 10 iterations, what is the error?
1 12 123 1234 12345
While(0) means dont enter into it, but why you want to have while(0) in c code. Any suggestion.
Asked in the interview today.