Scanner s = new Scanner(System.in);System.out.println("输入三角形直角边A:zhuan");int m = s.nextInt();System.out.println("输入三角形直角边B:");int n = s.nextInt();System.out.println("三角形斜边为"+Math.sqrt(Math.pow(m, 2)+Math.pow(n, 2)));扩展资料:1、直角三角形两直角边的平方和等于斜边的平方。∠BAC=90°...
Scanner s = new Scanner(System.in);System.out.println("输入三角形直角边A:");int m = s.nextInt();System.out.println("输入三角形直角边B:");int n = s.nextInt();System.out.pri...