Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int ile;
  7. cout<<"Ile liczb ma zawierac ciag?\n";
  8. cin>>ile;
  9. int tab[ile];
  10. cout<<"\nPodaj te liczby\n";
  11. for (int i=0; i<ile; i++)
  12. {
  13. cin>>tab[i];
  14. }
  15. for (int i=0; i<ile; i++)
  16. {
  17. if (tab[i]%2==1) cout<<" "<<tab[i]<<" ";
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement