fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. std::cout << "Enter a number: ";
  6. int i;
  7. std::cin >> i;
  8.  
  9. std::cout << "Enter a second number: ";
  10. int j;
  11. std::cin >> j;
  12.  
  13. std::cout << "i = '" << i << "', j = '" << j << "'\n";
  14. }
  15.  
Success #stdin #stdout 0s 3300KB
stdin
10
20
stdout
Enter a number: Enter a second number: i = '10', j = '20'