Lucian_Adrian

#2859 TreiCifImp

Feb 12th, 2022
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. int TreiCifImp(int n)
  2. {
  3. while (n > 99)
  4. {
  5. if (n % 2 == 1 && (n / 10 % 10) % 2 == 1 )
  6. if ((n / 100 % 10) % 2 == 1)
  7. return 1;
  8. n /= 10;
  9. }
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment