let sumOfSquare = 0;
let sumOfInteger = 0;
for (let i=1; i<=100; i++) {
sumOfSquare += i * i;
sumOfInteger += i;
}
console.log(sumOfInteger * sumOfInteger - sumOfSquare);
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.