摘要: public class Shuzu { public static void main(String[]args){ int n=0;//取出总数 int num=0;//数组 for(int b=1;b<5;b++){//求出百位数 for(int s=1;s<5;s++){//求出个位数 if 阅读全文
posted @ 2016-05-22 09:53 喵精二哈 阅读(131) 评论(0) 推荐(0) 编辑
摘要: public class Lingx { public static void main(String[]args){ int ji=0; int ou=0; for(int i=0;i<=100;i++){ if(i%2==0){ ou=ou+i; } else ji=ji+i; } System 阅读全文
posted @ 2016-05-22 09:50 喵精二哈 阅读(148) 评论(0) 推荐(0) 编辑
摘要: public class Ling { public static void main(String[]args){ for(int i=1;i<3;i++){ for(int z=1 ;z<6-i;z++ ){ System.out.print(" "); } for(int j=0;j<2*i- 阅读全文
posted @ 2016-05-22 09:48 喵精二哈 阅读(92) 评论(0) 推荐(0) 编辑
摘要: public class bubblesort{ public bubblesort(){ int a []={54,34,76,58,97,43,22,32,11,12,36,79,98,75,46,35,26} int temp=0; for(int i=0;i<a.length-1;i++){ 阅读全文
posted @ 2016-05-22 09:26 喵精二哈 阅读(76) 评论(0) 推荐(0) 编辑