fork download
  1. #include <iostream> // Required for input/output operations
  2.  
  3. int main() {
  4. int number; // Declare an integer variable to store the number
  5. std::cout << "Input your number = "; // Prompt the user to enter a number
  6. std::cin >> number; // Read the number from the user's input
  7.  
  8. std::cout << "Number = " << number << std::endl; // Print the number back to the console
  9. return 0; // Indicate successful execution
  10. }
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
Input your number = Number = 32767