like i said ill refer to this thread to ask other questions and i have another question.
whats wrong with this code:
#include <iostream>
using namespace std;
int main()
{
int i;
cout << "please enter an integer value: ";
cin >> i;
cout << "the value you entered is" << i;
cout << "and its double is...\n";
cout << i*2;
return 0;
}
what its suposed to do is that when a user enter a number its supposed to say "the value you entered is" then its supposed to show the value doubled. How does the user enter stuff i know that they have to put in a number but do they have to press enter? because if you have to press enter all it does is just exit the program when you press enter. Or is it supposed to pop up as soon as a value is entered.
wow im confused
