Program not asking input

I am trying simple program as below in C++ but it is not asking input at all. What is the problem ?
Pls help

// i/o example
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 " << i*2 << “.\n”;
return 0;

I tried your code it is working just by adding ‘#’ in front of include. Code is right.