Back to tasks
A reversed number
BeginnerPython for kids 路 Lesson 18: Module 1 summary: First steps
Problem Statement
Read a two-digit number and print it with its digits reversed (e.g. 47 -> 74, and 30 -> 3).
Input Format
One two-digit number (10..99).
Output Format
One number - the result.
Examples
Example 1
Input
47
Output
74
Example 2
Input
30
Output
3