#t227. 判断是否为两位数
判断是否为两位数
Check Whether It Is a Two-Digit Number
Problem Description
Determine whether a positive integer is a two-digit number (i.e. greater than or equal to 10 and less than or equal to 99).
Input Format
One positive integer not exceeding 1000.
Output Format
One line. If the positive integer is a two-digit number, output 1; otherwise output 0.
Sample Input
54
Sample Output
1
Hint
- "Two-digit number" translates to the condition: ≥10 and ≤99.
&&means "and"; it is true only when both hold. - Output 1 or 0.