怎么做啊?
public class HelloWorld {
public static void main(String[] agr) {
int count = 0;
Scanner scan = new Scanner(System.in);
System.out.println("请输入你要判断的那个数:");
int num = scan.nextInt();
while(num!=0)
{
num=num/10;
count++;
}
System.out.println("你输入的那个数是:"+count+"位数");
}
}
int x = 999;
if(x > 100) {
System.out.print("它是个3位的数");
}