The Sum of the first n positive integers in Nasm x86_64
In this mini project, we code the sum of the first n integers using Gauss’ formula.
Short Preview of Gauss’ formula
Say, we need to sum the first 20 positive integers. The sum, S is given as;
\(S = 1+2+3+…+20\) —————- (1)
Note also that the sum can b...
baremetal-bytes.hashnode.dev4 min read