Java Math class
#Java #Math #class
Math.max(x,y)
Math.min(x,y)
Math.abs(y)
Math.sqrt(x)
Math.round(x)
Math.ceil(x)
Math.floor(x)
//*********************************************
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
double x;
double y;
double z;
Scanner scanner = new Scanner(System.in);
System.out.println("Enter side x: ");
x = scanner.nextDouble();
System.out.println("Enter side y: ");
y = scanner.nextDouble();
z = Math.sqrt((x*x)+(y*y));
System.out.println("The hypotenuse is : "+z);
scanner.close();
}
}
//*********************************************
On this page of the site you can watch the video online Java Math class 📐【6 minutes】 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 13 October 2020, share the link with friends and acquaintances, this video has already been watched 130,464 times on youtube and it was liked by 5.4 thousand viewers. Enjoy your viewing!