C examples for Statement:for
Nested for loops controlled by letters:
#include <stdio.h> int main()//from ww w . jav a2 s. c om { int a; char b; printf("Here is thy grid...\n"); for(a=1;a<10;a++) { for(b='A';b<'K';b++) { printf("%d-%c ",a,b); } putchar('\n'); /* end of line */ } return(0); }