Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ summ
Function
summ
CodeChef_problems/CHEF AND CARD GAME/SOLUTION.cpp:3–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#include <iostream>
2
using namespace std;
3
long long int summ(long long int n){
4
long long int sum=0;
5
for (sum = 0; n > 0; sum += n % 10, n /= 10);
6
return sum;
7
}
8
int main() {
9
// your code goes here
10
int t;
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected