fork download
  1. #include <iostream>
  2. int main() {
  3. std::cout << "Enter three numbers separated by spaces: ";
  4. int number1;
  5. int number2;
  6. int number3;
  7.  
  8. std::cin >> number1;
  9. std::cin >> number2;
  10. std::cin >> number3;
  11.  
  12. std::cout << "The numbers entered by the User are: " << number1 << ", " << number2 << " and " << number3;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5276KB
stdin
10 20 30 
stdout
Enter three numbers separated by spaces: The numbers entered by the User are: 10, 20 and 30