Created
February 5, 2022 13:31
-
-
Save w3Abhishek/1abb1a5cfd0fab89e0df85c0bff7f22e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <conio.h> | |
int main() | |
{ | |
int matt[3][3],i,j; | |
printf("Enter the elements of Matrix :\n"); | |
for(i=0; i<3; i++) | |
{ | |
for(j=0; j<3; j++) | |
{ | |
scanf("%d", &matt[i][j]); | |
} | |
printf("\n"); | |
} | |
printf("Transpose of given matrix : \n"); | |
for(int a=0; a<3; a++) | |
{ | |
for(int b=0; b<3; b++) | |
{ | |
printf("%d\t", matt[b][a]); | |
} | |
printf("\n"); | |
} | |
printf("Visit https://codewin.org for programming tutorials"); | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment