Hello I am new to c++ and I am learning online tutorial, I have very simple code I want to show the result in the console.. I used online ideone.com it will gave me result(random number) but how can I want to show the result as output on eclips
#include <iostream>
using namespace std;
int main(void) {
int number;
cin >> number;
cout << "You typed the number " << number <<endl;
cin.get();
return 0;
}
#include <iostream>
usingnamespace std;
int main(void) {
int number;
cin >> number;
cout << "You typed the number " << number << endl;// this should show me //the number but it didn't.
cin.get ();
return 0;
}