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