fork download
  1. #include <iostream> // C++ I/O support
  2. using namespace std; // I/O is from the std namespace
  3.  
  4. int main () // C++ program entry point
  5. {
  6.  
  7. int i; // A temporary variable
  8.  
  9. cout << "Enter the data: "; // prompt for a number to the console
  10.  
  11. cin >> i; // read in a number
  12.  
  13. cout << i << endl; // write out the number entered
  14.  
  15. return 0; // main function return
  16. }
  17.  
  18.  
Success #stdin #stdout 0s 4192KB
stdin
30
stdout
Enter the data: 30