Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int ile;
- cout<<"Ile liczb ma zawierac ciag?\n";
- cin>>ile;
- int tab[ile];
- cout<<"\nPodaj te liczby\n";
- for (int i=0; i<ile; i++)
- {
- cin>>tab[i];
- }
- for (int i=0; i<ile; i++)
- {
- if (tab[i]%2==1) cout<<" "<<tab[i]<<" ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement