#CCBCMCHIN0000021. Giá trị đúng trong C (Truth Value in C)
Giá trị đúng trong C (Truth Value in C)
Truth Value in C
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer , determine its truth value when used as an if condition in C. Zero is false; every nonzero integer, including negatives, is true.
Input
One line with integer .
Output
Print FALSE for zero and TRUE for any nonzero value.
Subtasks
- Subtask 1 (20 points): . .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Example 1
Input
-7
Output
TRUE
Explanation
The input gives -7. The integer is -7, so its relation to zero selects the stated result. Therefore the required output is ['TRUE'].
Example 2
Input
0
Output
FALSE
Explanation
The input gives 0. The integer is 0, so its relation to zero selects the stated result. Therefore the required output is ['FALSE'].