by Eddie Bole (104 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Beginner
Originally Published: Wed 4th October 2017
Date Added: Tue 9th February 2021
Rating: (1 Votes)
Example of an algorithm that adds up integer numbers consecutively. Really shows how maths rules can speed things up. If you were to add 1 + 2 = 3 and then add this answer to the next number (+3) all the way to 1000000 in a loop, this would take considerably longer. In my example you can change the end number to what ever integer you like. I did some number key code checking. Enjoy.
Download One up to ONE MILLION (43 KB)