判断是否为两位数
题目描述
判断一个正整数是否是两位数(即大于等于 10 10 10 且小于等于 99 99 99)。
输入格式
一个正整数,不超过 1000 1000 1000。
输出格式
一行。若该正整数是两位数,输出 1 1 1,否则输出 0 0 0。
样例 #1
样例输入 #1
54
样例输出 #1
1
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<stdbool.h>
int main(){
int m;
scanf("%d",&m);
if(m>=9&&m<=99){
printf("%d\n",1);
}
else{
printf("%d\n",0);
}
return 0;
}