Dsa
Math
Easy
Lucky Number Count
A 'lucky number' is defined as a number that has an even sum of its digits. Given a list of positive integers, count how many of them are lucky numbers. The input will consist of a single line with space-separated integers. The output should be a single integer representing the count of lucky numbers.
Example:
Input:
12 34 56 78
Output:
2
Key concepts
mathcountingconditions
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now