1. Write down the syntax for the following functions in Java programming:
(a) To find the smaller between two numbers.
(b) To find the absolute value of a number.
(c) To find the exponent of a number.
(d) To find the square root of a number.
2. Assign the value of pie () to a variable with the suitable data type.
3. Give the output of the following expressions:
(a) If x = -9.99, calculate Math.abs(x);
(b) If x = 9.0, calculate Math.sqrt(x);
4. Perform the following functions with a suitable data type to:
(a) assign 35.0012 to a variable.
(b) assign the value of 2 (1.414) to a variable.
(c) assign 435.0 to a variable.
(d) find the square root of 99 with a variable.
(e) find the natural log of 23 with a suitable variable.
Answers
Answered by
2
Answer:
- please follow me please follow me please follow me please follow me please follow me please follow me please follow me please follow me please follow me please follow me please
Explanation:
please
Similar questions