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.
function main() {
// Enter your code here
var n = Number(inputLines[0]);
var sum = 0;
for(let i=1;i<=n;i++){
if(n%i==0){
sum+=i;
}
}
console.log('I implemented: AdvancedArithmetic'+'\n'+sum);
Day 19: Interfaces
You are viewing a single comment's thread. Return to all comments →
interfaces solution using Typescript or JavaScript and All solution of HackerRank https://github.com/deepak14ri/Hackerrank-30-Day-Challenge
}