Whats wrong? The input considered is 12345 whose reverse is 54321?
Am i missing something?
Joined: Jun 22, 2013
but i want to print 1 2 3 4 5
Joined: Aug 07, 2007
I've already told you what to do but if you don't understand what I said think about the problem yourself. If you have code that reverses a number ie changes 6789 to 9876 and if you want a specific output such as 12345 what number do you have to start with so when it is reversed it will be 12345.