Computer Science, asked by ageofultron421, 2 months ago

ut+1/2at² java program​

Answers

Answered by debayudhbasu
2

Answer:

import java.util.*;

class phy

{

public static void main()

{

Scanner sc=new Scanner(System.in);

int u,t,a;

System.out.println("Enter the values");

u=sc.nextInt();

t=sc.nextInt();

a=sc.nextInt();

int s=u*t+1/2*a*Math.pow(t,2);

System.out.println(s);

}

}

Answered by anshulrathore2506
1

Answer:

(u * t) + ( 1/2 * a * t * t).

Explanation:

ut+1/2at^2 in java program

So,

(u * t) + ( 1/2 * a * t * t)

Similar questions