最新回答 / 慕瓜4454517
不应该是while ( num>1)么,不然会死循环哎。而且即使是while ( num>1),那num刚好是10的倍数时,结果就会不准确,比如num=10,那num/10=1,while结束循环,此时count=1, 你的结果会是显示“它是个1位的数”
2021-04-02
最新回答 / 慕无忌0531652
public class HelloWorld { public static void main(String[] args) { // 定义一个整型数组,并赋初值 int[] nums = new int[] { 61, 23, 4, 74, 13, 148, 20 }; int max = nums[0]; // 假定最大值为数组中的第一个元素 int min = nums[0]; // 假定最小值为数组中的第一个元素 double sum =...
2021-03-31
最新回答 / 维天有漢
public class HelloWorld { public static void main(String[] args){ System.out.println("hello imooc"); }}
2021-03-28