How do we reverse a number with leading zeroes in number ? For ex: If input is 004, output should be 400.
I wrote below program but it works only when n
Yes, you must use a string. You cannot store leading zeros in an int.