importjava.util.Scanner;publicclassIsoscelesRightTriangle{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);System.out.print("请输入等腰直角三角形的高度: ");intheight=scanner.nextInt();for(inti=1;i<=height;i++){// 打印空格for(intj=i;j<height;j++){System.out.print(" ...
private static Scanner sc;private static List<Integer> edge = new ArrayList<Integer>();public static void main(String[] args){System.out.println("请输入三角形的三条边");sc = new Scanner(System.in);input();}public static void input() {while (edge.size() < 3){if (sc.hasN...