for (init; condition; update) { do stuff} int i;for (i = 0; i < 30; i = i + 1) { printf("This line is %d\n", i);}
While
int i = 0;while (i < 10) { printf("still less than 10, %d\n", i); i = i + 1;} int i = 0;do { printf("%d is less than 10\n", i); i = i + 1; } while (i < 10);
Conditionals
Switch
switch (expression) { case 1: statements break; case 2: statements break;default: statements break;}