Add Digits Solutions in GoNumber 258Difficulty EasyAcceptance 57.7%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func addDigits(num int) int { for num > 9 { cur := 0 for num != 0 { cur += num % 10 num /= 10 } num = cur } return num}package leetcode func addDigits(num int) int { for num > 9 { cur := 0 for num != 0 { cur += num % 10 num /= 10 } num = cur } return num }