MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

Misc/SumOfAllDigits/solution2.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int main() {
30 /* Enter your code here. Read input from STDIN. Print output to STDOUT */
31 long int m,n;
32 cin>>n;
33 cin>>m;
34 int sum1=sumofdigits(n);
35 cout<<sumuptosingledigit(sum1*m);
36 return 0;
37}

Callers

nothing calls this directly

Calls 2

sumofdigitsFunction · 0.85
sumuptosingledigitFunction · 0.85

Tested by

no test coverage detected