write a program to show the use of atleast any 10 use of mathematical.functions in java
Answers
Answered by
1
Answer:
public class Test {
public static void main(String args[]) {
System.out.println(Math.pow(10, 2));
System.out.println(Math.sqrt(49));
System.out.println(Math.cbrt(27));
System.out.println(Math.abs(-25));
System.out.println(Math.floor(4.7));
System.out.println(Math.ceil(4.2));
System.out.println(Math.round(5.5));
System.out.println(Math.rint(5.2));
System.out.println(Math.min(90, 25));
System.out.println(Math.max(5, 15));
}
}
Output:
100.0
7.0
3.0
25
4.0
5.0
6
5.0
25
15
Attachments:
Similar questions