#include<stdio.h>
#define MAX_ROWS 26
#define MAX_COLS 26

int main(void)
{
	char tabula_recta[MAX_ROWS][MAX_COLS];
	int pos , row , col;
	
	for( row=0; row < MAX_ROWS; row++){
		pos = 0;
		for( col=0; col < MAX_COLS; col++){
			if('A'+row+col > 'Z' && row > 0){
				tabula_recta[row][col] = 'A'+ pos;
				pos++;
			}
		else if('A' + row + col == 'Z')
			tabula_recta[row][col] = 'Z';
		else 
			tabula_recta[row][col] = 'A'+row+col;
		}
	}
	
	puts("Printing tabula recta table...");
	
	for( row=0; row<MAX_ROWS; row++) {
		printf("\n");
		for( col=0; col<MAX_COLS; col++){
				printf("%c" , tabula_recta[row][col]);
		}
	}

return 0;
}

