#include int main(int argc, char* argv[]){ int i; int j; /* Boolean tests < > == >= <= && || a && b || c (a && b) || c a && (b || c) a = 1 b = 0 c = 1 */ for(j = 0; j < 25; ++j){ i = j + 1 printf("%d\t%d\t%d\n", i, i * i, i * i * i); } /* variable declaration for(initialization; test; increment){ loop body } */ int k = 1; while(k <= 25){ printf("%d\t%d\t%d\n", k, k * k, k * k * k); k++; } /* while(condition){ loop body } */ while(1){ //loop body } for(;;){ //loop body } if(){ } else{ } /* switch(value){ case value1: do something; break; case value2: do something else; break; default: do default thing; break; } */ return 0; }