Question: Convert from C code to Java code: / * C Program for comparison of Symmetric Matrices * / #include #include main ( ) { int
Convert from C code to Java code:
C Program for comparison of Symmetric Matrices
#include
#include
main
int m n c d matrix transpose;
printfEnter the number of rows and columns of matrix
;
scanfdd&m&n;
printfEnter the elements of matrix
;
for c ; c m ; c
for d ; d n ; d
scanfd&matrixcd;
for c ; c m ; c
for d ; d n ; d
transposedc matrixcd;
if m n check if order is same
for c ; c m ; c
for d ; d m ; d
if matrixcd transposecd
break;
if d m
break;
if c m
printfSymmetric matrix.
;
else
printfNot a symmetric matrix.
;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
