TERNARY int x = 5; int y = 10; int z = (x > y) ? x : y; // z = 10 FOR int i; for (i = 0; i < 5; i++) { // statements ... // this loop will cycle i as 0, 1, 2, 3, and 4 } DO // prototype // do { statement; } while (expression); // actual use int i; do { PrintInteger(i); i++; } while (i < 5); WHILE // prototype // while (expression) { statement; } // The while loop tests expression and executes the statements // repeatedly as long as expression is TRUE. // If the expression evaluates to FALSE at the beginning of the // while loop's execution then the statements are skipped over entirely. int i; while (i < 5) { // statements ... i++; } SWITCH/CASE switch (x) { case 0: // statements ... // without a break testing would continue // in this example if we didn't use a break, the default // condition would also evaluate as true if x == 0 break; case 1: // statements ... break; case 2: // statements ... break; default: // statements ... break; }