Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sum of all n integers

Sum of n integers 1 + 2 + 3 + ... + n = n * (n + 1) / 2
 
PREVIOUS NEXT
Tagged: #sum #integers
ADD COMMENT
Topic
Name
1+8 =