Problem 61075. Count the Even Digits in a Number

Given a positive integer n, write a function that returns how many digits of n are even.
Even digits are: 0, 2, 4, 6, 8

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Nov 17, 2025

Solution Comments

Show comments

Problem Recent Solvers7

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!