C loops: Difference between revisions
From wikinotes
No edit summary |
(No difference)
|
Latest revision as of 02:40, 14 June 2016
for loop
char *names[] = { "will", "alex" }; for (i=0; i<names; i++){ printf( "%s\n", name ); }
while loop
int i = 0; while( num < 10 ){ printf("waiting..."); i++; }