Back to tasks
At least zero
BeginnerPython for kids 路 Lesson 21: if - when the condition is true
Problem Statement
Read a number n. If it is negative, change it to 0. Print n.
Input Format
One whole number n (-1000 <= n <= 1000).
Output Format
One number - the result.
Examples
Example 1
Input
-15
Output
0
Example 2
Input
15
Output
15