Lucian_Adrian

#76 FUltimaCifraPara

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