function SimpleAdding(num) { let final = 0; for (let i = 1; i <= num; i++) { final += i; } // code goes here return final; }copy
function SimpleAdding(num) { let final = 0; for (let i = 1; i <= num; i++) { final += i; } // code goes here return final; }