三角

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));

 

posted @ 2016-09-19 22:21  庚庚庚庚庚辰  阅读(114)  评论(0编辑  收藏  举报