Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int TreiCifImp(int n)
- {
- int nrci=0;
- while(n)
- {
- if(n%10%2)
- ++nrci;
- else
- nrci=0;
- if(nrci==3)
- return 1;
- n/=10;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement