Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 281 Bytes

File metadata and controls

15 lines (12 loc) · 281 Bytes

Section A – Simple Programming Task

Describe an algorithm which sums all numbers from 1 to 1000000 both numbers inclusive in the simplest possible way.

npm install
npm run sum

Output

> npm run sum
Sum of numbers from 1 to 1000000 : 500000500000
PS >