#include int main(){ int i; printf("\n ** Testing for loops. ** \n\n"); // What is the value of i outside the loop? (Here it's 3.) printf("Starting loop from i=0 to i<3.\n"); for (i=0;i<3;i++){ printf(" Inside the loop, i=%i.\n",i); } printf("Done. The value of i is now %i.\n\n", i); // Does a for loop evaluate at all when the // ending condition is never satisified? (Nope.) printf("Starting loop from i=0 to i<0.\n"); for (i=0;i<0;i++){ printf(" Inside the loop, i=%i.\n",i); } printf("Done. The value of i is now %i.\n\n", i); }