摘要:
用while语句求1~100之和 public class Ex3_5 { public static void main(String[] args){ int n=1,sum=0; while(n<=100) { sum+=n; n++; } System.out.println("sum="+ 阅读全文
posted @ 2016-10-24 11:23
独步雀
阅读(1307)
评论(0)
推荐(0)
摘要:
九九乘法表 public class Ex3_12 { public static void main(String args[]){ System.out.println(" 九九乘法表"); for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System 阅读全文
posted @ 2016-10-24 10:31
独步雀
阅读(158)
评论(0)
推荐(0)

浙公网安备 33010602011771号