2017年3月28日

摘要: public class YHSJ{public static void main(String[] args) {int i;int j;int a[][];a=new int[100][100];for(i=0;i<10;i++)for(j=0;j<=i;j++){if((i==0)||(j== 阅读全文
posted @ 2017-03-28 12:52 子木。 阅读(87) 评论(2) 推荐(0) 编辑

2017年3月21日

摘要: public class S { public static void main(String[] args){ int i=1; do{ int j=2; while(j<i){ if(i%j==0) break; j++; } if(j==i){ Sysem.out.printf(i); } i 阅读全文
posted @ 2017-03-21 13:01 子木。 阅读(90) 评论(1) 推荐(0) 编辑
摘要: public class MutiTable{ public static void main (string [ ]args){ for (int i=1;i<=9;i++){ for(int j=1;j<=i; j++) system.out.print(" "+i+"*"+j+"="+i*j) 阅读全文
posted @ 2017-03-21 13:00 子木。 阅读(117) 评论(1) 推荐(0) 编辑

导航