摘要:
旅行社向航空公司订票时,航空公司将根据订票量给予一定折扣,订票量越大则折扣越高。如果订票量小于10 张,折扣率为10%;订票量大于等于10 张且小于20 张时,折扣率为15%;订票量大于等于20 张且小于30 张时,折扣率为30%;订票量等于或超过30张则给予最高的45%折扣。试编写一个程序,根据用 阅读全文
posted @ 2016-04-23 14:24
小菜鸟的愤怒
阅读(173)
评论(0)
推荐(0)
摘要:
public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 for(int i=1;i<=9;i++){ for(int j=1;j<i+1;j++){ System.out.print(j+"*"+i 阅读全文
posted @ 2016-04-23 14:14
小菜鸟的愤怒
阅读(336)
评论(0)
推荐(0)
摘要:
public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 double r, t; r = 1.5; t = Math.PI * r * r; System.out.println(t); }} 阅读全文
posted @ 2016-04-23 14:10
小菜鸟的愤怒
阅读(1958)
评论(0)
推荐(0)
摘要:
public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 int a, b, c; a = 46; b = a / 7; c = a % b; System.out.println("天数为:" + 阅读全文
posted @ 2016-04-23 14:08
小菜鸟的愤怒
阅读(2499)
评论(0)
推荐(0)
摘要:
public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 for (int i = 1; i <= 100; i++) { System.out.print(i + " "); } }} 阅读全文
posted @ 2016-04-23 14:02
小菜鸟的愤怒
阅读(702)
评论(0)
推荐(0)
摘要:
public class Test {// 定义类 public static void main(String[] args) {// 主函数,程序的入口 int a = 0; for (int i = 0; i <= 100; i++) { a += i;// 相当于a=a+i; } Syste 阅读全文
posted @ 2016-04-23 13:58
小菜鸟的愤怒
阅读(591)
评论(0)
推荐(0)

浙公网安备 33010602011771号