#include<iostream>
#include<cmath>
using namespace std;
int main( )
{ float a, d1, d2, v;
cout<<"d1="; cin>>d1;
cout<<"d2="; cin>>d2;
a=sqrt((d1/2)*(d1/2)+(d2/2)*(d2/2));
v=(d1*d2)/ 2 ;
cout<<"Perimetriul e :"<<4*a<<endl;
cout<<"Aria e:"<<v;
return 0;
}
a-reprezinta latura
v-reprezinta aria.