I have written a small interactive console application to help me understand variables, when you run the application it will ask you for a length and a width and it is supposed to work out the area.
It works up to the part were it is supposed to give you the answer.
I can't see were I have gone wrong can anyone give me a clue.
using namespace std;
int length; // this declairs a variable
int width; // this declairs another variable
cout <<"Enter The Length: ";
cin >> length; //input the length
cout << "Enter The Width: ";
cin >> width; //input the width
cout <<"The area is: ";
cout << length * width; //display the area
Thanks very much