摘要: 1.最大公约数/* * GCD(A,B)=GCD(A,B mod A)循环求模实现最大公约数 */public class Gcd { public static void main(String[] args) { int a,b,r; Scanner sc=n... 阅读全文
posted @ 2014-10-07 10:51 Lucare 阅读(120) 评论(0) 推荐(0)
摘要: 1.打印金字塔。 public class OutGoldWord { public static void main(String[] args) { int n=5; for(int i=1;ii+1;j--){ Syste... 阅读全文
posted @ 2014-10-07 10:43 Lucare 阅读(247) 评论(0) 推荐(0)