Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 199 Bytes

0006.md

File metadata and controls

11 lines (9 loc) · 199 Bytes
let sumOfSquare = 0;
let sumOfInteger = 0;

for (let i=1; i<=100; i++) {
    sumOfSquare += i * i;
    sumOfInteger += i;
}

console.log(sumOfInteger * sumOfInteger - sumOfSquare);