HW2.24

时间:2021-06-12 20:37:24

HW2.24

 import java.util.Scanner;

 public class Solution
 {
     public static void main(String[] args)
     {
         Scanner input = new Scanner(System.in);

         System.out.print("Enter v and a: ");
         double v = input.nextDouble();
         double a = input.nextDouble();

         input.close();

         double length = v * v / (2 * a);
         System.out.println("The minimum runway length for this airplane is " + length);
     }
 }

相关文章