Java问题将下列代码改写为while循环:int sum=0;for(int i=1; i<10; i++) if(i%3==0) //该语句的作用: sum+=i System.out.println("sum is"+sum)
代码如下