#include <stdio.h>
#define SIZE 15

void main(){

int i, h, ar[SIZE][SIZE], row, col, p1, p2;


printf("Enter how many rows: ");
scanf("%d", &row);
printf("Enter how many columns: ");
scanf("%d", &col);
printf("Enter the numbers you want to put in the array: ");


for (i=0;i<col;i++){

for (h=0;h<row;h++){
scanf("%d", &ar[h][i]);

}}

for (p1=0;p1<col;p1++){
printf("column %d: ", p1+1);
for (p2=0;p2<row;p2++){
printf(" %d", ar[p2][p1]);
}
printf("\n");
}
}