how to take input in C++ in coding

C++
  int x; 
cout << "Type a number: "; // Type a number and 
  press enter
cin >> x; // Get user 
  input from the keyboard
cout << "Your number is: " << x; 
  // Display the input value 
Source

Also in C++: