MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/recursion/recursion2.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 return digit_sum(n/10)+ n%10;
18}
19int main(){
20 read(n);
21 cout<<digit_sum(n)<<endl;
22
23
24 return 0;
25}

Callers

nothing calls this directly

Calls 1

digit_sumFunction · 0.85

Tested by

no test coverage detected