Find and fix the errors in the following program.
#include <iostream>
using namespace std;
int main()
{
cout << "This program calculates the area of a "
<< "rectangle. Enter the length: ";
cin >> length;
cin >> width;
int length, width, area;
area = length * width;
cout << "The area is " << area << endl;
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.