It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Adding Program

Moderator: dafunkymunky

Adding Program

Postby xp4268 on Sun Feb 07, 2010 8:10 pm

Create a form with a command button and a label. Write a program that adds the whole numbers from 1 to 1000 and displays the sum in the label. Create a variation of this program that allows the user to specify any starting whole number and any ending whole number (10,000 or lower) and then adds all the whole numbers in that range. Allow for the possibility that a user may start with a high number and end with a low number. Format the label so that commas are displayed and there are no decimal places showing.
xp4268
 
Posts: 2
Joined: Sun Feb 07, 2010 8:04 pm

Who is online

Users browsing this forum: No registered users and 7 guests