//edit: he (joshdick) was posting at the same time as me -_-
you forgot the closing code tag
using namespace std;
int main ()
int num1, num2;
float sum, average;
sum = num1 + num2; //not necessary
average = (num1 + num2) / 2.0;//not necessary
cout << "This program calculates the sum and average of two input integers." << endl;
cout << "Please enter two integers separated by a space: ";
cin >> num1 >> num2;
cout << endl;
// Add num1 + num2 for the sum.
sum = num1 + num2;
// Average of num1 and num2.
average = (num1 + num2) / 2.0; //if this doesn't work (it should), try average=static_cast<float>(num1+num2)/2.0;
// Display the sum of num1 + num2.
cout << "The sum of your two numbers is " << sum << endl;
// Display the average of num1 and num2.
cout << "The average of your two numbers is " << average << endl << endl;