From bfcf086076f882627dbf7360112f6516e0c65383 Mon Sep 17 00:00:00 2001 From: PoolsDOMAIN <67582355+PoolsDOMAIN@users.noreply.github.com> Date: Sat, 23 Oct 2021 16:14:51 +0530 Subject: [PATCH] created transpose of a matrix Cpp code to create a transpose of a matrix --- transpose_of_a_matrix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 transpose_of_a_matrix diff --git a/transpose_of_a_matrix b/transpose_of_a_matrix new file mode 100644 index 000000000..83199b8f3 --- /dev/null +++ b/transpose_of_a_matrix @@ -0,0 +1,31 @@ +//Matrix Transpose + +#include +using namespace std; + +int main() +{ + int n; + cin>>n; + cout<<"\n"; + int a[n][n]; + + for(int i=0;i>a[i][j]; + } + } + cout<<"\n"; + + for(int i=0;i