问答详情
源自:4-15 编程练习

是只有我这样写的吗?没用上count

public class HelloWorld{ public static void main(String[] args){ int num = 999; int count = 0; for(int i=0; i<10; num="">=Math.pow(10,i) && num<Math.pow(10,i+1)){    System.out.println("它是个"+(i+1)+"位的数!"); } } } } 

提问者:慕圣大越越 2020-03-11 11:04

个回答

  • qq_慕UI1025689
    2020-03-13 11:51:51

    可以呦