import java.util.*;
public class rectangle {
    public static void main(String args[]){
        Scanner reader=new Scanner(System.in);
         int i= reader.nextInt();
        Scanner reader1=new Scanner(System.in);
         int j= reader1.nextInt();
        juxing www=new juxing(i,j);
        System.out.println("面积为:"+www.mianji+"周长为:"+www.zhouchang);
    }
}
class juxing{
    int mianji,zhouchang;
    public juxing(int chang,int kuan){
    mianji=chang*kuan;
    zhouchang=(kuan+chang)*2;
    }
}

posted on 2019-09-18 18:28  螃蟹一号  阅读(112)  评论(0编辑  收藏  举报