Why am i getting such output in this case and how to deal with the minus thing
link to my code:-
Pls help in getting the correct output
Instead of printing can how can we store the difference in a char array or string pls give code for that
hi @kunal81198 this is the code that stores the result in a string rather than printing it. https://ide.codingblocks.com/s/317201
to_string function accepts an int and returns a string, it will also handle the case of negative numbers.
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.