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

来源:4-15 编程练习

慕圣大越越

2020-03-11 11:04

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)+"位的数!"); } } } } 

写回答 关注

1回答

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

    可以呦

Java入门第一季(IDEA工具)升级版

0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始

1166818 学习 · 17593 问题

查看课程

相似问题