Comp
Comp
OuTpuT
2 8 7
10 8 6
AddiTiOn Of TWO mATrix
OuTpuT:
2 6 8
4 8 6
4 6 9
TrAnSpOSe Of mATrix
public class Transpose {
Output
OuTpuT
4567
1734
11 12 13 14
23 24 25 50
else if ((i+j)==(size-1))
rsum = rsum + a[i][j];
else
continue;
}
}
OuTpuT:
exAmpLe :-
Input :N=3
Enter elements of single dimensional array : 3 1 7
}
}