Write Bash Script Could Add 2 Matrix Iwithout Using Awk M1 M2 Q37153236

Write bash script that could add 2 matrixiwithout using awk

M1 : 1 2 3 4

M2 : 1 2 3 4

1 2 3 4 1 2 3 4 Show transcribed image text 1 2 3 4
1 2 3 4


Solution


main.shB O saved #1 /bin/bash read -p Enter matrix size [axb] c : 3 a-$c:0:1 4 b-$c:2:1) 5 echo Enter Matrix 1 6 for i ihttps://FittingOblongModule.kunlstudy.repl.run GNU bash, version 4.4.12 (1)-release (x86 64-pc-linux-gnu) Enter matrix size [

if you like the answer please provide

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.