← Accenture questions
Codingeasy / mediumReported in a candidate post, Aug 2023

Count numbers ending with 2, 5, or 7

Filed under Accenture

Given two integers x and y, determine the total count of numbers within the inclusive range [x, y] that end with the digits 2, 5, or 7.

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 Accenture questions

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