โ† HSBC questions

Count even and odd digits in a number

Filed under HSBC

Given a positive integer, count and return the total number of even digits and odd digits present in the number.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

Collected from public candidate posts and coding forums. Updated Nov 2026.