count even and odd digits of the number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

count even and odd digits of the number

determine how many in the user input number of even number of odd

31st Oct 2017, 4:24 PM
Daniyar
2 Answers
0
What issues have you run into while coding it? Id just go char by char and have an % 2 if else statement which would increment either first or second value and then print both of them
31st Oct 2017, 4:28 PM
imouse
imouse - avatar