#include void main() { int i,j,aa[6]={1,2,3,4,5,6}; for (i=0; i<=5; i++) { for (j=0; j<=5; j++) printf("%2d ",aa[(i+j)%6]); printf("\n"); } }