Sum of two arrays: wrong answer
Hello @sanya2508,
Can you please clear, what exactly are you trying to ask?
- You have raised the doubt for form-biggest-number
- You have given the heading: Sum of two arrays: wrong answer
- You have shared the code of count digits
It would easier for me to resolve your doubt if you would clearly state the doubt.
Waiting for your reply.
Sorry, that was by mistake.
I was asing about the sum of arrays and here is the link to my code: https://ide.codingblocks.com/s/131841
Hello @sanya2508,
-
The output Format is Wrong:
Example:
4
1 0 2 9
5
3 4 5 6 7
Your Output:
3 5 5 9 6 END
Expected Output:
3, 5, 5, 9, 6, END
CAN YOU SEE THE DIFFERENCE? -
Carry concept is not working:
Example:
4
1 0 2 9
4
4 5 6 7
Your Output:
5 5 8 16 END
Expected Output:
5, 5, 9, 6, END
Example:
5
3 4 5 6 7
4
1 0 2 9
Your Output:
1 0 2 9 END
Expected Output:
3, 5, 5, 9, 6, END
LOOK FOR THE ELSE PART
Hope, this would help.
Give a like, if you are satisfied.