//program to print the value of x. #include //we need these libraries #include using namespace std; //don't ask:) int main() //our entry point { int x; //this declares the variable, x x = 3; //this assigns x the value of 3 cout << "The value of x is " << x << endl; //prints the value of x system("PAUSE"); //prints up the "press a key to continue" message return 0; //tells computer that main() executed successfully, then quits. }