C++ Integer Input/Output
#include <iostream>
int main() {
// Declare an integer variable to store user input
int userInput;
// Prompt the user to enter an integer
std::cout << "Enter an integer: ";
// Read the user input and store it in the variable
std::cin >> userInput;
// Display the entered integer
std::cout << "You entered: " << userInput << std::endl;
return 0;
}