Author: Sanif S S
Site: theeduzone.blogspot.com
Email: sanifss@gmail.com#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a[20][20],m,n,i,j;
printf("\nenter the order of the matrix : ");
scanf("%d %d",&m,&n);
printf("\nenter the elements of the matrix : ");
for(i=0;i
{
for(j=0;j
{
scanf("%d",&a[i][j]);
}
}
printf("\n\nmatrix is\n");
for(i=0;i
{
for(j=0;j
{
printf(" %d ",a[i][j]);
}
printf("\n");
}
printf("\n\ntranspose of the matrix is\n");
for(i=0;i
{
for(j=0;j
{
printf(" %d ",a[j][i]);
}
printf("\n");
}
getch();
}
No comments:
Post a Comment