Back to tasks
Heat alarm
BeginnerPython for kids 路 Lesson 21: if - when the condition is true
Problem Statement
Read a temperature. If it is greater than 30, print ALARM. Then (always) print the temperature.
Input Format
One whole number - the temperature (-50 <= temperature <= 50).
Output Format
Exactly the text from the example.
Examples
Example 1
Input
35
Output
ALARM 35
Example 2
Input
20
Output
20