Saturday, January 10, 2015

Finding velocity from v2=u2+2as using java

import java.lang.*;

public class velocity2{
public static void main(String [] args){
double u=5, a=3.5, s=2, v=0;
v=Math.sqrt(u*u+2*a*s);
System.out.println("Velocity is="+v);
}
}

No comments:

Post a Comment