View Single Post
Old Feb 21st, 2008, 9:02 PM   #6
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Re: My programs aren't running...( no errors)

You misspelled "namespace".
You're missing a semi-colon on line 6.

#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: ";
     cout << length * width;

     return 0;
}
Sane is offline   Reply With Quote