fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int x, y, z, result;
  7.  
  8. cout << "Program sums up three integers: " << endl;
  9.  
  10. cout << "Enter first number: ";
  11. cin >> x;
  12. cout << "Enter second number: ";
  13. cin >> y;
  14. cout << "Enter third number: ";
  15. cin >> z;
  16.  
  17. result = x+y+z;
  18.  
  19. cout << "Result: " << result << endl;
  20. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Program sums up three integers: 
Enter first number: Enter second number: Enter third number: Result: -1368200632