import java.util.Scanner;
public class Compare{
public static void main(String[] args) {
double shirtPrice=245;
double tennisShoesPrice=570;
double tennisRacketPrice=320;
int shirtNumber=2;
int shoesNumber=1;
int racketNumber=1;
Scanner scan=new Scanner(System.in);
System.out.println("请输入折扣:");
double discount=scan.nextDouble();
double a=shirtPrice*discount*shirtNumber;
double b=tennisShoesPrice*discount*shoesNumber;
double c=tennisRacketPrice*discount*racketNumber;
if(a>100){
System.out.println("T恤商品折后价格大于100元");
}
if(b>100){
System.out.println("网球鞋商品折后价格大于100元");
}
if(c>100){
System.out.println("网球拍商品折后价格大于100元");
}
}
}
public class Compare{
public static void main(String[] args) {
double shirtPrice=245;
double tennisShoesPrice=570;
double tennisRacketPrice=320;
int shirtNumber=2;
int shoesNumber=1;
int racketNumber=1;
Scanner scan=new Scanner(System.in);
System.out.println("请输入折扣:");
double discount=scan.nextDouble();
double a=shirtPrice*discount*shirtNumber;
double b=tennisShoesPrice*discount*shoesNumber;
double c=tennisRacketPrice*discount*racketNumber;
if(a>100){
System.out.println("T恤商品折后价格大于100元");
}
if(b>100){
System.out.println("网球鞋商品折后价格大于100元");
}
if(c>100){
System.out.println("网球拍商品折后价格大于100元");
}
}
}