#include <stdio.h> #include <stdlib.h> int main() { int a[10][10],b[10][10],c[10][10],i,j,m,n; printf("Enter Size of A Matrix :\n"); scanf("%d%d",&m,&n); printf("Enter Elment Of Matrix A : \n"); for(i=0;i<m;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); for(i=0;i<m;i++) for(j=0;j<n;j++) b[j][i]= a[i][j]; printf("\nA Matrix is :\n\n"); for(i=0;i<m;i++) { for(j=0;j<n;j++) printf("%4d", a[i][j]); printf("\n"); } printf("\nTranspose of A matrix is :\n\n"); for(i=0;i<n;i++) { for(j=0;j<m;j++) printf("%4d", b[i][j]); printf("\n"); } return 0 ; }
Most Popular
-
Befunge: Developed by : Chris Pressey Year: 1993 Stack-based, reflective, esoteric programming language.
-
-
The list below is an unordered list. You can pick any book you like, and some of the books don’t even cover a programming language at all,...
-
Recursion happens when function calls itself directly or indirectly.
Copyrights © 2016 Codzya. Powered by Blogger.
Wednesday, May 11, 2016
Subscribe to:
Post Comments (Atom)
Recent
Weekly
-
Befunge: Developed by : Chris Pressey Year: 1993 Stack-based, reflective, esoteric programming language.
-
-
The list below is an unordered list. You can pick any book you like, and some of the books don’t even cover a programming language at all,...
-
Recursion happens when function calls itself directly or indirectly.
-
1- The C Programming Language This book is a comprehensive guide to the finalized ANSI standard C language programming. It has b...
Comment
Get this Recent Comments Widget
!->
0 Comment to "Matrix Transpose "
Post a Comment