private double zuo; private double you; private double xia; public double Zhouchang(double a,double b, double c) { zuo=a; you=b; xia=c; return a+b+c; }
Sanjiao sj=new Sanjiao(); System.out.println("三角形的周长为:"+sj.Zhouchang(25.3,24,40));