tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code06:12

Java Math class 📐【6 minutes】

Bro Code ↗

From the creator

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(); } } //*********************************************

Published 2020-10-13 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code