摘要:
package com.itheima.test; import java.util.Scanner; public class Test6 { public static void main(String[] args) { //商品的价格 /* 需求: VIP会员打折制度 商品价格为1000 键 阅读全文
摘要:
分数 score 票 ticket 阅读全文
摘要:
1. if(关系表达式){ 语句体1; } 2. if(关系表达式){ 语句体1; } else{ 语句体2; } 3. //嵌套 if(关系表达式1){ if(关系表达式2){ 语句体1; } else{ 语句体2; } } //多条件判断 if(关系表达式1){ 语句体1; }else if(关 阅读全文
摘要:
package com.itheima.test; public class Test4Up { public static void main(String[] args) { /* //需求:购物,商品总价600元。 //键盘录入整数表示客户支付的钱 //如果大于等于600,表示支付成功,否付款 阅读全文