Saturday, January 10, 2015

Finding velocity from v=u+at using java

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

No comments:

Post a Comment