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