作业:【判断几位数】#include <stdio.h>int main (){ printf("请输入四位数及其以下的数字:"); int x = 1; scanf("%d", &x); if(x > 999){ x = 4; } else if (x > 99){ x = 3; } else if (x > 9){ x = 2; } else { x = 1; } printf("你的数字为%d位数。", x); return 0; }