#include void instructions(); int main() { instructions(); int i; for( i = 1; i < 3; i++) { int j; for( j = 0; j < 3; j++ ) { printf("\n\tinside inner loop: i = %d, j = %d ", i, j); } printf("\n Outside inner loop: i = %d, j = %d ", i, j); } printf("\n Outside outer loop: i = %d, j = %d ", i, j); return 0; } void instructions(void) { printf("\n***********************************************************"); printf("\n***** This program demos variable scope ***"); printf("\n***** ***"); printf("\n***** This code is initially buggy, however if this ***"); printf("\n***** meassage is being printed to the screen, you ***"); printf("\n***** found the bug and corrected it!! Good on you! ***"); printf("\n***********************************************************\n"); }