Write a function named countOddDigits that accepts a positive integer as its parameter and returns the number of odd-valued digits in that number.An odd-valued digit is either 1, 3, 5, 7, or 9.For example, the number 8546785 has three odd digits (two 5s, one 7), so the call countOddDigits(8546785) should return 3.You may assume that the value passed to your method is non-negative.
pls use pyhton
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here