Solve it and run it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Solve it and run it

It is C program of adding of two matrix https://code.sololearn.com/cps9UqwXH8Ls/?ref=app

2nd Oct 2023, 2:29 PM
Adarsh Chauhan
Adarsh Chauhan - avatar
4 Answers
+ 2
Solve it and run it Or Run it and Solve it. What issues you are facing.
2nd Oct 2023, 2:53 PM
A͢J
A͢J - avatar
+ 1
It is not giving a proper answer in the form of matrix
4th Oct 2023, 3:48 AM
Adarsh Chauhan
Adarsh Chauhan - avatar
0
I had a quick look, is your trouble because of scope of variables within a function? Will it work if you make your variables global? [edit: that wasn't necessary, I input: 2 2 1 2 3 4 1 2 3 4 and got result: 2 4 6 8 your code works]
6th Oct 2023, 9:03 PM
HungryTradie
HungryTradie - avatar
0
Thanks you so much
7th Oct 2023, 12:18 AM
Adarsh Chauhan
Adarsh Chauhan - avatar