You are viewing a single comment's thread. Return to all comments →
My submission in C++
int divisorSum(int n) { int i; int temp = 0; for(i = 1; i <= n; i++){ if(n % i == 0){ temp += i; } } return temp; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 19: Interfaces
You are viewing a single comment's thread. Return to all comments →
My submission in C++