We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 19: Interfaces
Day 19: Interfaces
Sort by
recency
|
807 Discussions
|
Please Login in order to post a comment
Python3 :
For Python:
My submission in C++
for JS
Java class Calculator implements AdvancedArithmetic {`
int totalSum; public int divisorSum(int n) { for(int d = 1; d <= n; d++){ if(n % d == 0){ totalSum +=d; } } return totalSum; }
} `