Searching...

Parameter and Area

16:00


#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;
}

0 comments:

Post a Comment

Thanks For Your FeedBack....