logical problem in c/c++
please reply soon so that we can get to some serious job.
have problem in logic:
"WRITE A PROGRAM IN C / C++ WHICH CAN ADD ANY TWO NUMBERS"
* the length of number is undefined. i.e. it can be a 10 page long number .
* for ex: the program should be able to add:
This sounded like an interesting problem when i first read it, seemed really hard to do. Theres no variable type that can hold such large numbers( as far as i know ). Then i realized this could be done easily.
You just make a solution similar to how you solve on paper.
Adding evry number starting from the end of both inputs.
+ " 11"
Output the solution as String.
I hope you understand what i mean :D
> please reply soon so that we can get to some serious job.
If this is so you can get a job (or keep a job), then forget it.