k, so here's the problem: this is the code i've written:
#include <iostream>
using namespace std;
int main()
{
int length, width;
cout << "Enter the length: ";
cin >> length;
cout << "Enter the width: ";
cin >> width;
cout << "The area is " << length * width;
return 0;
}
But it's probably not even my code since this works for anything i write.
When i compile and run this file in Dev C++, i can enter the first two digits no problem, but when i hit enter after that, it doesnt display my area, or it might but, the windows closes instantly.
Anyone know how to fix this, is it simply some settings or...