Răspuns :
Răspuns:#include <iostream>
using namespace std;
int main()
{
int ldr,L,l,a,p,Apatrat,Ppatrat;
cout<<"latrura dreptunghi=";
cin>>ldr;
cout<<"lungime greptunghi=";
cin>>L;
cout<<"lungime patrat=";
cin>>l;
p=ldr+ldr+L+L;
a=ldr*L;
Ppatrat=l*4;
Apatrat=l*l;
cout<<"perimetru dreptunghi="<<p<<endl;
cout<<"arie dreptunghi="<<a<<endl;
cout<<"perimetru patrat="<<Ppatrat<<endl;
cout<<"arie patrat="<<Apatrat;
return 0;
}