三角形

  

public class A {

    public static void main(String[] args) {

        SanJiaoXing san = new SanJiaoXing ( ) ;
        
        System.out.println( "边长分别为1,1,2的三角形周长为 :" + "\n" + san.BianChang ( 1.0 , 1.0 , 2.0 ) );
        
        System.out.println( "边长分别为3,4,5的三角形周长为 :" + "\n" + san.BianChang ( 3.0 , 4.0 , 5.0 ) );
        
        System.out.println( "边长分别为4,4,4的三角形周长为 :" + "\n" + san.BianChang ( 4.0 , 4.0 , 4.0 ) );
        
    }

}

 

posted @ 2016-09-20 11:25  蕤霁雲若  阅读(152)  评论(1编辑  收藏  举报