Advertisement
a53

B_Egal

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