摘要: 6,求最大公约数和最小公倍数 import java.util.Scanner; public class HCFandLCM { public static void main(String[] args) { int a, b, m; Scanner scanner = new Scanner(System.in); ... 阅读全文
posted @ 2014-09-22 15:39 塔斯曼 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1,生兔子问题(斐波那契数列) public class Fibonacci { public static void main(String[] args) { System.out.println("The rabit of 1th month : 1"); System.out.println("The rabit of 2th month : 2"); ... 阅读全文
posted @ 2014-09-22 11:01 塔斯曼 阅读(128) 评论(0) 推荐(0) 编辑