Java While DoWhile语句的学习

 

 

 

 

package com.AoChenguang.Struct;

public class WhileDemon {
public static void main(String[] args) {
double i=0.0;
double M=0.0;
while (i<100000000.0){
i++;
M=M+i;
}
System.out.println(M);

}
}

 

 

posted @ 2020-05-27 18:19  光光1234  阅读(117)  评论(0编辑  收藏  举报