C++ Exercises
C++ Program to Print an Integer (Entered by the User).
#include <iostream> using namespace std; int main() { int x; cout<<"\n Enter x value:"; cin>>x; cout << "\n Display x value : " <<x<< endl; return 0; }
Output:
Enter x value:31 Display x value : 31