fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int testy, wynik, j;
  5. int main()
  6. {
  7. testy = 3;
  8.  
  9. for (int i = 0; i < testy; i++)
  10. {
  11.  
  12. cin >> j;
  13.  
  14. wynik += j;
  15.  
  16. cout << wynik << endl;
  17. }
  18. }
Success #stdin #stdout 0.01s 5424KB
stdin
6
8
-3
stdout
6
14
11