Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
335 B
1
Indexable
Never
#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");
   }
   }
Leave a Comment