user
Write an algorithm to determine the digital root of a number. Output:
assistant
The algorithm for determining the digital root of a number is as follows:
1. Start with the number
2. Add each individual digit in the number together
3. If the result is a single-digit number, that is the digital root. Otherwise, go back to step 2 and repeat until a single-digit number is reached.