C++ Program to Print an Integer (Entered by the User). | C ++ प्रोग्राम को प्रिंट करने के लिए एक पूर्णांक (उपयोगकर्ता द्वारा दर्ज)।






















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