/*Given the legth of a side of square, this program
calculates area, diagnol and perimeter*/
#include<iostream.h>
#define ROOT_TWO 1.4142135623730950488
int main()
{
double s;
cout<<"Enter length of side :";cin>>s;
cout<<"Length of diagnol = "<<s*ROOT_TWO<<endl;
cout<<"Perimeter = "<<4*s<<endl;
cout<<"Area = "<<s*s<<endl;
return 0;
}