Skip to content

Instantly share code, notes, and snippets.

@w3Abhishek
Created February 5, 2022 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w3Abhishek/1abb1a5cfd0fab89e0df85c0bff7f22e to your computer and use it in GitHub Desktop.
Save w3Abhishek/1abb1a5cfd0fab89e0df85c0bff7f22e to your computer and use it in GitHub Desktop.
#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