Write the Java expressions for : S = ut + 1/2 at²
Answers
Answered by
12
Answer:
import java.util.*;
class ss
{
public static void main(String args[])
{
Scanner sc =new Scanner(System.in);
double s=0;
double u,t,a;
System.out.println("enter the value");
u=sc.nextInt();
t=sc.nextInt();
a=sc.nextInt();
s=(u*t)+1/2*a*t*t;
System.out.println();
}
}
Explanation:
I THINK THIS SOLUTION WILL GOING TO HELP YOU ,IF YES THEN PLEASE MARK ME BRAINLIST
Similar questions