leetle

Daily challenge for 2025-05-03

123. Sum of Digits Until One Digit

Write a function solve that repeatedly sums the digits of a number until a single digit is obtained.

Example:
Input: 16
Output: 7

Run this challenge interactively in Python or JavaScript when the app loads.