sir my code is perfectly compiled but when i submit the program, they says ur code failed to compile.
Doubt in print reverse
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.
- So, just use a variable of appropriate datatype.
- Then write a program to reverse it.
- Finally, print the reversed number.