Răspuns :

#include <iostream>

using namespace std;

int main() {

int l, L; // l = latimea, L = lungimea

cin >> l;

cin >> L;

cout << "P = " << 2 * (l + L) << endl;

cout << "A = " << L * l;

return 0;

}