【Java】【三種循環】《while、do-while和for循環求和》2016.01.28

package com.geminno.he0126; public class Test07 { public static void main(String[] args) { int i = 1; int s = 0; while(i<=100){ s=s+i; i++; } System.out.println(s); // while方法來求1--100的和 int m = 1; int
相關文章
相關標籤/搜索