Back to tasks
Doubling small ones
BeginnerPython for kids 路 Lesson 21: if - when the condition is true
Problem Statement
Read a number n. If it is less than 10, double it. Print n.
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
One number - the result.
Examples
Example 1
Input
4
Output
8
Example 2
Input
10
Output
10