#include <iostream>
using namespace std;
int main ()
{
double length,width,parameter,area;
cout << "Enter length:" <<endl;
cin >> length;
cout << "Enter width:" <<endl;
cin >> width;
area=length*width;
parameter=2*(length+width);
cout << "Area is = "<< area <<endl;
cout << "Perameter is ="<< parameter <<endl;
return 0;
}
No comments:
Post a Comment