Submit | All submissions | Best solutions | Back to list |
S1P2 - Reverse number |
Mohamed has a new challenge and he wants your help. Given an integer number contain 5 digit only, print the reverse of this number.
Input
input will contain an integer number n, 10000 <= n <= 99999, n will not contain any trailing zeros.
Output
Print the reverse of this number.
print endl after test case
Example
Input: 12345 Output: 54321
Added by: | mohamed gamal |
Date: | 2012-01-27 |
Time limit: | 2s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C++ 4.3.2 CPP |