Untitled
unknown
plain_text
2 years ago
335 B
6
Indexable
#include <stdio.h>
void main()
{
int num[2][3];
int i,j;
printf("Enter the 6 elements of 2*3 matrix: \n");
for(i=0;i<2;i++){
for(j=0;j<3;j++){
scanf("%d",&num[i][j]);
}
}
for(i=0;i<2;i++){
for(j=0;j<3;j++){
printf("%d\t",num[i][j]);
}
printf("\n");
}
}
Editor is loading...
Leave a Comment