摘要: public class wu{ public static void main(String[] args){ for(int i=1;i0;j--){ System.out.print(" "); } for(int k=1;k<=2... 阅读全文
posted @ 2015-12-03 21:53 秦萧不再 阅读(758) 评论(0) 推荐(0) 编辑
摘要: int w = 8; switch (w){ case 0: System.out.println("今天是星期日"); break; case 1: System.out.println(... 阅读全文
posted @ 2015-12-03 21:23 秦萧不再 阅读(301) 评论(0) 推荐(0) 编辑
摘要: public class wu{ public static void main(String[] args){ int a = 2,b = 1, c = 0,d = b*b-4*a*c if (a == 0){ System.out.println("不是... 阅读全文
posted @ 2015-12-03 21:18 秦萧不再 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 一、while的用法//循环 int i = 10; while(i > 0){ if(i==8) {i--; continue;//跳过} System.out.println(--i); if(i==... 阅读全文
posted @ 2015-12-03 20:45 秦萧不再 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 阶乘是基斯顿·卡曼(Christian Kramp,1760~1826)于 1808 年发明的运算符号,是数学术语。 一个正整数的阶乘(英语:factorial)是所有小于及等于该数的正整数的积,并且有0的阶乘为1。自然数n的阶乘写作n!。1808年,基斯顿·卡曼引进这个表示法。亦即n!=1×2×... 阅读全文
posted @ 2015-12-03 20:04 秦萧不再 阅读(703) 评论(0) 推荐(0) 编辑
摘要: public class tz{ public static void main(String[] args){ int sg=165,tz=52;bz = sg-115 if (tz-bz>3) { System.out.println(... 阅读全文
posted @ 2015-12-03 13:06 秦萧不再 阅读(350) 评论(0) 推荐(0) 编辑
摘要: public class wu{ public static void main(String[] args){ //TODO 自动生成的方法存根 int a = 0,b = 0,c = 0; int A = 1,B = 1,C = 1; ... 阅读全文
posted @ 2015-12-03 11:35 秦萧不再 阅读(201) 评论(0) 推荐(0) 编辑