public static void main(String[] args) { // TODO Auto-generated method stubScanner input=new Scanner(System.in);Sanjiaoxing obj1=new Sanjiaoxing();do{ System.out.println("第一条边为"); int a=input.nextInt(); System.out.println("第二条边为"); int b=input.nextInt(); System.out.println("第三条边为"); int c=input.nextInt(); String obj5=obj1.pangduan(a, b, c); System.out.println(obj5); System.out.println("继续吗(y/n)"); String d=input.next();}while(d=="n");System.out.println("谢谢使用2");}}
添加回答
举报
0/150
提交
取消