From 97a693d996c79fb2a008b19750d8bb45512e01a2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 6 Feb 2017 11:26:44 -0500 Subject: Inital commit --- transpose.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 transpose.c (limited to 'transpose.c') diff --git a/transpose.c b/transpose.c new file mode 100644 index 0000000..32c769b --- /dev/null +++ b/transpose.c @@ -0,0 +1,65 @@ +/*File: transpose.c The transpose of matrix A is obtained by interchanging the rows and columns. */ +#include + +#define M 10 +#define N 20 + +int main() +{ + + double a[M][N], b[N][M]; + int row,col; + + for(row=0;row