Skip to content

Commit 546c912

Browse files
Update transpose_of_matrix.cpp
1 parent 22fae14 commit 546c912

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

2D Arrays/transpose_of_matrix.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ while(t--)
3939

4040
transpose(matrix,n);
4141
for (int i = 0; i < n; ++i)
42-
for (int j = 0; j < n; ++j)
43-
cout<<matrix[i][j]<<" ";
44-
cout<<endl;
42+
{
43+
for (int j = 0; j < n; ++j)
44+
cout<<matrix[i][j]<<" ";
45+
cout<<endl;
46+
}
4547
}
4648
return 0;
4749

0 commit comments

Comments
 (0)