Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Balistic {
- public static void main (String[] args) {
- double x0 = Double.parseDouble(args[0]);
- double v0 = Double.parseDouble(args[1]);
- double t = Double.parseDouble(args[2]);
- double g = 9.78033;
- double x = (x0 + v0 * t - (g*(t*t))/2);
- System.out.println(x);
- }
- }
Add Comment
Please, Sign In to add comment