#include<stdio.h>
void main()
{
int a[50][50];
int r,c,i,j,flag=1;
printf("\n Enter the Limit of Row & Coloumn : ");
scanf("%d%d",&r,&c);
printf("\n Enter the Matrix Elements : \n");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
scanf("%d",&a[i][j]);
}
}
printf("\n The Given Matrix......\n\n");
for(i=0;i<r;i++)
{
for(j=0;j<c;j++)
{
printf("%d\t",a[i][j]);
}
printf("\n");
}
No comments:
Post a Comment