Calculate a Triangle Number
Calculate a Triangle Number — CodeCodex Math The sum of the first n integers, the shape that gives it its name, and the one-line formula that replaces an entire loop. Difficulty: Beginner Languages: Python · JavaScript · Pascal Read: ~8 min In this article What a triangle number is, visually and numerically The loop-based approach…
