摘要:        
题目:判断101-200之间有多少个素数,并输出所有素数。 1 public class Algorithm_Game_02 { 2 public static void main(String[] args) { 3 for(int i = 101 ; i ");12 } 13 }14 }    阅读全文
        posted @ 2013-08-26 17:12
elleniou
阅读(582)
评论(3)
推荐(0)
            
        
        
摘要:        
题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第四个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?1.程序分析: 兔子的规律为数列1,1,2,3,5,8,13,21.... 1 public class Algorithm_Game_01 { 2 3 public static void main(String[] args) { 4 int month = 20; 5 for(int i = 1 ; i "); 7 } 8 } 9 public static i...    阅读全文
        posted @ 2013-08-26 16:58
elleniou
阅读(1187)
评论(0)
推荐(0)
                    
                
浙公网安备 33010602011771号