function sumSquareDifference(n) {
// Good luck!
let a = 0,b=0,c=0;
for(let i = 1;i<=n;i++){
a+= (Math.pow(i,2));
b+=i
}
c=Math.pow(b,2)-a
console.log(a);
console.log(b);
return c;
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here is my Javascript Solution