#include<stdio.h>
void main()
{
int a[50][50];
int r,c,i,j;
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");
}
printf("\n The Transpose of the Matrix......\n\n");
for(i=0;i<c;i++)
{
for(j=0;j<r;j++)
{
printf("%d\t",a[j][i]);
}
printf("\n");
}
}
https://play.google.com/store/apps/details?id=com.raysoft.linu.uml1
ReplyDeleteCheck out this new UML app for programmers...