Write the java statement for the following.
x= ut +½ at2
Answers
Answered by
1
Answer:
(u*t) + (1/2*a*t*t)
THANK YOU
Answered by
6
Java Expression for:
Answer:-
There are two ways to write this as java Expression:-
- double x= u * t + (1/2)* a* t* t;
- double x= u * t + (1/2)* a* (Math.pow(t,2));
Note:-
- double x means value of x will return in decimal form.. you can also write float x
- to get the result in integer format, you can use long,short or int instead of double and float.
Always remember:-
- Math.pow() returns double data type value.
- (t* t) can also be written as Math.pow(t,2)
Similar questions
Economy,
2 months ago
Math,
2 months ago
English,
2 months ago
Social Sciences,
4 months ago
Math,
10 months ago