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
Read the number in string format (that is, use std::string) and reverse the string.