Question bank › Math
Dsa Math Easy

Sum of Digits Until One Digit

Given a non-negative integer, continuously sum its digits until a single digit is obtained. Input: - A single integer n (0 <= n <= 10^9). Output: - A single digit which is the result after repeated summation of the digits. Example: Input: 38 Output: 2

Key concepts

mathdigitsreduction

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
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.