Even and odd digits

  • 10
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.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
UMID NarziyevLevel 20 , Tashkent
10 June 2019, 15:23
I dont undestand why I am getting errors!!! Anyone who can help me?
26 March 2019, 21:07
I don't know why this code can't pass verification process. plesss help
RomanLevel 41
27 March 2019, 07:38
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at codegym.cc/help.