Reversing a number
Submit solution
C
Points:
10
Time limit:
8.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Problem Statement
Given a positive integer, reverse the number. If the number is ZERO or Negative, print the message "Invalid Input"
Sample Input-1
123
Sample Output-1
321
Sample Input-2
-54
Sample Output-2
Invalid Input
Comments