fork(2) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int a, b;
  5.  
  6. std::cout << "Podaj pierwszą liczbę: ";
  7. std::cin >> a;
  8.  
  9. std::cout << "Podaj drugą liczbę: ";
  10. std::cin >> b;
  11.  
  12. int suma = a + b;
  13. std::cout << "Suma: " << suma << std::endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Podaj pierwszą liczbę: Podaj drugą liczbę: Suma: 1480269740