@@ -1,15 +1,16 @@
//
// Created by xfj12 on 2025/3/24.
#include <solution/258.h>
int addDigits(int num)
{
int total = 0;
do
} while ();
}
int main()
int n = 0;
while (num)
n += num % 10;
num /= 10;
num = n;
} while (num >= 10);
return num;
The note is not visible to the blocked user.