Reversing a number


Submit solution

Points: 10
Time limit: 8.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C

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

There are no comments at the moment.