I am relatively new to programming. I started working on this calculator to calculate area. What I believe is the problem is the int length; line and the int width; line. I have a string in the program to show the area with the statement in the last line of code. I'm sorry in advance if it looks like I did all of this wrong.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#include <string>
usingnamespace std;
int main()
{
int length;
int width;
cout << "Please enter the your length: ";
cin >> length;
cout << "Please enter your width: ";
cin >> width;
string area =
length * width;
cout << " The area of these values is :" << area << "\n";
}