版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38234015/article/details/88352004
import java.util.Scanner;
public class Test2_12 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter speed and acceleration: ");
double speed = input.nextDouble();
double acc = input.nextDouble();
input.close();
double length = (speed * speed) / (2 * acc);
System.out.println("The minmum runway length for this airplane is " + length);
}
}