Write a Java program to show the use of any 10 methods of math class.
Answers
Answered by
0
Answer:
Syntax
- import java.lang.Math;
- public class MathClassExample3 {
- public static void main(String[] args) {
- double x = Math.PI / 2;
- x = Math.toRadians(x);
- System.out.println("Math.acos() example" + Math.acos(x));
- }
- }
Similar questions