编程题:
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int speed = scanner.nextInt();
String result = speed > 60 ? "Speeding" : "OK";
System.out.println("Speed: " + speed + " - " + result);
}
}

posted on 2025-04-18 21:42  Swishy  阅读(6)  评论(0)    收藏  举报