Sum of two array


check krna bhaiya

Kya issue aa rha hai isme @sehrawat ?

I have tested your code for this input
5
9 9 9 9 9
5
9 9 9 9 9

Expected output was
1, 9, 9, 9, 9, 8, END

Your output is
18 ,18 ,18 ,18 ,18 ,END

See this code for proper implementation :slight_smile:

but bhaiya mera waala mai kya galti ho gyi

https://ide.codingblocks.com/s/365439 first place pa to 19 aana chea na

We have to do this question in such a manner that every cell of an array doesn’t go beyond number 9, if you will do so you will see
Cell 1 from right 9+9 = 18, 8 in cell . One in carry.
Cell 2 from right 1+9+9 = 19, 9 in cell . One in carry.
Cell 3 from right 1+9+9 = 19, 9 in cell . One in carry.
Cell 4 from right 1+9+9 = 19, 9 in cell . One in carry.
Cell 5 from right 1+9+9 = 19, 19 in cell . Array index ends.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.