DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+8 =
Submit