This program asks the user to enter the length and width of
// This program asks the user to enter the length and width of // a rectangle. It calculates the rectangle\'s area and displays // the value on the screen. #include using namespace std; int main() { int length, width, area; cout.
Solution
#include<iostream>
using namespace std;
int main()
{
int width,height,area;
cout<<\"Enter Width of Rectangle = \";
cin>>width;
cout<<\"Enter Height of Rectangle = \";
cin>>height;
area=height*width;
cout<<\"Area of Rectangle =\"<<area<<endl;
return 0;
}
