package Test;
import java.util.Scanner;
public class Homework3 {
public static void main(String [] args) {
Scanner zy = new Scanner(System.in);
int Tjg = 50;
int xjg = 200;
int pjg = 80;
System.out.println("请输入折扣");
double zk = zy.nextDouble();
boolean Tzk = Tjg*zk < 100;
boolean xzk = xjg*zk < 100;
boolean pzk = pjg*zk < 100;
System.out.println("T恤折扣价低于100吗?"+Tzk);
System.out.println("网球鞋折扣价低于100吗?"+xzk);
System.out.println("网球拍折扣价低于100吗?"+pzk);
}
}
注意细节