kuba17ism

Untitled

Oct 21st, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int tab[6] = {1,2,5,8,4,3};
  7.  
  8. for (int i=0; i<6; i++) {
  9. if(tab[i] %2 == 1)
  10. cout <<tab[i]<<" ";
  11. }
  12.  
  13. cout << endl;
  14.  
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment