C++ 计算长方形面积和周长
#include <iostream>
using namespace std;
int main() {
int length, width;
cin >> length >> width;
int area = length * width;
int perimeter = 2 * (length + width);
cout << area << endl;
cout << perimeter << endl;
return 0;
}
原文地址: https://www.cveoy.top/t/topic/plEL 著作权归作者所有。请勿转载和采集!