Code:#include <stdio.h> int main() { int i,j,row=1,col=3,sum=0; int a[row][col]; printf("Enter the elements on by one:"); for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { scanf("%d",&a[i][j]); } } printf("The A matrix \n"); for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { printf("%5d",a[i][j]); } printf("\n"); } int colsum[col]; //To calculate column sum for(j=1;j<=col;j++) { colsum[j]=0; for(i=1;i<=row;i++) { colsum[j] = colsum[j] + a[i][j]; } } printf("The A matrix \n"); for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { printf("%5d",a[i][j]); } printf("\n"); } printf("\n The Column Sum is ="); for(i=1;i<=col;i++) { printf("%5d",colsum[i]); } return(0); }