southpaw5253
Newbie
- Joined
- Nov 18, 2005
- Messages
- 46
- Reaction score
- 0
when i try to compile this SIMPLE program...i cant an unexpected end of file error.
what is wrong? i bet its something really dumb but im not sure. plz help me!
#include<iostream>
using namespace std;
int main()
{
int num1 = 0;
int num2 = 0;
int total = 0;
cout << "Enter first number:";
cin >> num1;
cout << "Enter second number:";
cin >> num2;
total = num1 + num2;
cout << total;
return 0;
}
what is wrong? i bet its something really dumb but im not sure. plz help me!
#include<iostream>
using namespace std;
int main()
{
int num1 = 0;
int num2 = 0;
int total = 0;
cout << "Enter first number:";
cin >> num1;
cout << "Enter second number:";
cin >> num2;
total = num1 + num2;
cout << total;
return 0;
}