许多社区都有“雷达”标志,告诉司机他们的速度是多少,希望他们能够慢下来。 你将输出一个“雷达”标志的信息,根据司机驾驶车速的情况向他(她)显示信息。
输入格式:
在一行内输入2个整数。第一个表示速度的限制,第二个表示司机的开车速度。
输出格式:
如果司机没有超速,输出应该是:Congratulations, you are within the speed limit!
如果司机超速行驶,输出为:You are speeding and your fine is F.(F为上表中描述的罚款数额)
我的代码
package next;
import java.util.Scanner;
public class test2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double limited = in.nextDouble();
double speed = in.nextDouble();
if(speed<=limited)
{
System.out.print("Congratulations, you are within the speed l