Page 1 of 1

We need to determine how many 9s are in a number. We only want to count a 9 if it is an even digit in the number, for ex

Posted: Sat May 14, 2022 4:19 pm
by answerhappygod
We Need To Determine How Many 9s Are In A Number We Only Want To Count A 9 If It Is An Even Digit In The Number For Ex 1
We Need To Determine How Many 9s Are In A Number We Only Want To Count A 9 If It Is An Even Digit In The Number For Ex 1 (11.6 KiB) Viewed 44 times
We need to determine how many 9s are in a number. We only want to count a 9 if it is an even digit in the number, for example, in 1234 2 and 4 would be even digits. Please write a method that will determine the number of 9s. evenNines(999) - 1 evenNines(9) - 0 evenNines(992339939) - 2 Go ... Save, Compile, Run (ctrl-enter) public int evenNines(int num) {