This commit is contained in:
2025-07-12 23:57:21 +08:00
parent 321cb6c439
commit 7325a22989
4 changed files with 45 additions and 12 deletions

View File

@@ -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;
}