MCPcopy 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>
2using namespace std;
3long 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}
8int main() {
9 // your code goes here
10 int t;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected