leetcode-剑指64-OK

// language c
// 剑指64
// https://leetcode-cn.com/problems/qiu-12n-lcof/


int sumNums(int n){
    int ans = n;
    (n) &&(ans +=sumNums(n-1));
	return ans;
}
posted @ 2021-01-31 10:11  RougeBW  阅读(40)  评论(0编辑  收藏  举报