Sum of All Odd Numbers in VB6
I already introduced a program that can calculate the sum of all even numbers in visual basic 6.0 and now we will create another but this time it will be an odd numbers summation. We will write a Visual Basic program that reads an integer value and displays the sum of all odd integers starting from 1 and input value, inclusive. It will display an error message if the input value is less than 1.
Now, let's start this tutorial!
1.