This program collects 3 numbers from the user and then simple adds the total and spits out a response. problem is the final output is blank, it just says 'The total is: '_____ but nothing there. Whats wrong??
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int num[3];
for(int x=0; x<3; x++)
{
cout << "Enter a number: ";
cin >> num[x];
}
int sum=0;
int x=0;
for(int x=0; x<3; x++);
{
x=x+sum;
cout << "The total is: ";
cin >> x;
}
return 0;
}