#include <stdio.h>int main(){ int a,n = 1,i,j; int arr[101][101] = {}; scanf("%d",&a); for(i=0;i<a;i++) { for(j=0;j<a;j++) { arr[i][j] = n; n++; } } for()}