C Saved Program: kind-terrain

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


#include<stdio.h>
#include<math.h>
int main()
{
 int a[4][4];
 int i,j,r,c;
 scanf("%d%d",&r,&c);
 printf("enter the elements of the matrix");
 for(i=0;i<r;i++)
 {
  for(j=0;j<c;j++)     
  {
   scanf("%d",&a[i][j]);      
   printf("\t");
  } 
  printf("\n");     
 }
    return 0;
}

Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs