Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP
#4
(12-16-2008, 06:13 AM)Skyler link Wrote:Like Tia said, we'll help if you already have tried to put some effort into it and have some code to prove it.

Secondly, though, this looks like homework, and it's a standing policy not to do people's homework. Is it?

Skyler

If they have tried we can lead them towards the correct answer, but yea I don't think we are able to say, oh just do (qb skills a little low atm so just deal with the if then/any syntax I have a little wrong)

if x<0 then
print "loop again"
x = x +1
end if

but we could say something like, ok from what you have stated you start at a number that is lower than 0 like -51 for example and you need x = 0.  So to do this you need to perform a loop that will loop (for lack of a better term) until x=0.  You can do this many ways and some of the most popular choices are if then or for next.

See we gave the person who at least tried it a starting point but didn't give a direct answer.
Reply


Messages In This Thread
HELP - by gbengazzee - 12-16-2008, 04:02 AM
Re: HELP - by Tia - 12-16-2008, 04:55 AM
Re: HELP - by Skyler - 12-16-2008, 06:13 AM
Re: HELP - by Tia - 12-21-2008, 01:50 PM
Re: HELP - by Ralph - 12-22-2008, 09:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)