#include <stdio.h> int main() { int a; printf("请输入一个整数:"); scanf("%d",&a); if (a>=1000) { printf("%d is greater than 1000 ",a); } else if(100<=a) { printf("%d is 100 to 999 ",a); } else if(10<=a) { printf("%d is 10 to 99 ",a); } else if (10>a) { printf("%d is less than 10 ",a); } return 0; }
编写输入一个整数,将其数值按小于10,10~99,100~999,1000以上分类并显示的程序
组员:方缙 曹时仙 王治林 韦小闻