Advertisement
a53

TreiCifImp

a53
Jan 24th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int TreiCifImp(int n)
  2. {
  3. int nrci=0;
  4. while(n)
  5. {
  6. if(n%10%2)
  7. ++nrci;
  8. else
  9. nrci=0;
  10. if(nrci==3)
  11. return 1;
  12. n/=10;
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement