import java.util.Scanner;
public class zk{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("是否会员");
String vip = sc.nextLine();
System.out.println("支付了多少元");
double Moey = sc.nextDouble();
if (vip=="是" ){
if (Moey>=200){
System.out.println("您应付款:" +Moey*0.75);
}else{
System.out.println("您应付款:" +Moey*0.8);
}
}else{
if (Moey>=100){
System.out.println("应付款:"+Moey*0.9);
}else{
System.out.println("应付款:"+Moey);
}
}
}
}
// 非法类型错误是因为大括号缺少或多加
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)