Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int paratlan(vector<int> &szamok)
- {
- int lekerdez = 0;
- for(int i= 0; i < szamok.size(); i++)
- {
- if(szamok[i]%2 != 0)
- {
- int tarol = 1;
- lekerdez+=tarol;
- }
- }
- cout<<"paratlan szam volt : "<<lekerdez<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement