Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main() //8 zadanie
  6. {
  7. ifstream odczyt ("dane.txt");
  8. int tabl[100]={0},i=0;
  9. for(i=0;i<10;i++)
  10. {
  11. odczyt>>tabl[i];
  12.  
  13. if(tabl[i]%2==0)
  14. {
  15. cout << tabl[i]<<", ";
  16. }
  17.  
  18. }
  19.  
  20. cout << endl << "koniec";
  21.  
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement