fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int b, c;
  8. int a[b];
  9. c=2;
  10. cout << "podaj ile liczb podasz: ";
  11. cin >> b;
  12. for(int i=0; i==b; i++)
  13. {
  14. cout << "podaj " << i+1 << "liczbe" << endl;
  15. cin >> a[i];
  16. }
  17. for(int i=0; i==b; i++)
  18. {
  19. cout << "liczby parzyste: " << endl;
  20. if(a[i]%c==0)
  21. cout << a[i] << endl;
  22. }
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
podaj ile liczb podasz: