add: 220303-CN [cpp]

This commit is contained in:
Lam Haoyin 2022-03-03 15:04:50 +08:00
parent c19b115904
commit 55e35c0718
No known key found for this signature in database
GPG Key ID: 8C089CB1A2B7544F
1 changed files with 6 additions and 0 deletions

6
cpp/2203/220303-CN.cpp Normal file
View File

@ -0,0 +1,6 @@
/**
* Refer: 220208.cpp
*
* 258. Add Digits
* Given an integer `num`, repeatedly add all its digits until the result has only one digit, and return it.
*/