输入 两个正整数,作为长方形的宽和高 输出 长方形的周长和面积,这两个数字要输出在同一行,中间用一个空格相隔,最后不要换行

#include<iostream>

using namespace std;

int main()
{
          int x;
          int y;
          cin >> x >> y;
          cout << x*2+ y*2<< " " << x*y;
          return 0;
}

posted @ 2021-09-18 17:27  Leeeeeeeeeeeeee  阅读(429)  评论(0)    收藏  举报