编程题:11
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double x = scanner.nextDouble();
double y;
if (x <= 15) {
y = 4 * x / 3;
} else {
y = 2.5 * x - 17.5;
}
System.out.printf("%.2f", y);
}
}
浙公网安备 33010602011771号