Mega Code Archive

 
Categories / C / Code Snippets
 

Three level nested for loop

#include <stdio.h> int main(void) { int x, j, k; for(x = 0; x < 3; x++) for(j = 0; j < 26; j++) for( k = 0; k < 2; k++) printf("%c", 'A' + j); return 0; }