Even and odd digits

  • 4
  • Locked
Let's determine how many even digits and how many odd digits are in a number entered from the keyboard. If a number is divisible by 2 without a remainder (i.e. the remainder is zero), then it is even. And we'll increase the even digit counter (static variable even) by 1. Otherwise, the number is odd, so we'll increase the odd digit counter (static variable odd).
You can't complete this task, because you're not signed in.