Doubt in print reverse

sir my code is perfectly compiled but when i submit the program, they says ur code failed to compile.

Hello @Tanish,
Please, read the question properly before attempting it.

I suggest you to read the explanation section.

Hope, this would help.
If you still face problem, feel free to ask though i would suggest to try hard to solve it yourself.
Give a like if you are satisfied.

BTW, why are you using array?
It’s a single number.

  1. So, just use a variable of appropriate datatype.
  2. Then write a program to reverse it.
  3. Finally, print the reversed number.