我无法真正弄清楚下面代码中的错误是什么。另外:我的代码看起来很不雅,有什么建议可以更好地构建它吗?
import java.util.*;
import java.io.*;
import java.lang.Math;
public class FlightSimulator {
public static void main(String[] args){
int time;
int v_y;
int v;
int v_squart;
int height;
Scanner myscan = new Scanner(System.in);
System.out.print("Please enter the time for which you want to output the height of the " +
"plane ");
time = myscan.nextInt();
if(time==0){
System.out.print("The height of the plane is 456 meters over ground.");
}
else{
v_y = 51 - time*3;
v = Math.pow(v_y+20, 2);
v_squart = Math.sqrt(v);
height = 456 - v;
System.out.print("The height of the plane is" + height);
}
}
}