You are on page 1of 1

class speed { public static void main(float u,float t,float a)

{ double speed=(u*t)+(a*t*t)/2; System.out.println("the initial velocity="+u); System.out.println("the time="+t); System.out.println("the acceleration="+a); System.out.println("the speed="+speed);

You might also like