Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some Help

Status
Not open for further replies.

lcutliffe

IS-IT--Management
Dec 1, 2006
30
0
0
US
Can someone show me a loop that does this? im stuck

Problem 2-3. Odd Integers Problem. Build an application that adds consecutive odd integers (starting with one) until the sum exceeds a target value. Display the sum and how many integers were added.

Not sure of how to go about writing this loop.
just startin out in VB

thx
LC
 
Is this a school assignment?

[small]----signature below----[/small]
I don't do any programming whatsoever

Ignorance of certain subjects is a great part of wisdom
 
Nope, i'm teaching myself how to write VB and using a tutorial I found on the NET, was going along great till I hit this problem..It pertains to the LOOP chapter I just read but I'm not sure how to do it and it doesn't have the answer in the tutorial. Just lookin for a nudge to keep me goin. I have tried several things but I cant seem to get it to do what it says.

LC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top