Re: 82 Prob.
[Prev][Next][Index][Thread]
Re: 82 Prob.
At 07:26 AM 6/2/97 -0500, you wrote:
>Hi all,
>I am having some trouble eliminating some goto's in a
>program that I've been editing. The prog. is supposed to
>factor a number that you give. Here's the problem:
>....
>If T>10
>Then
>35+Y /sto/ Y : 0 /sto/ T : 0 /sto/ X
>goto 0
>Else
>goto 0
>lbl 0
>.....
>
>Now I know that goto's are VERY BAD because they fill up the
>calcs memory quickly, but I can't find a way to get around
>this one. Any help would be appreciated. Thanx!
>-David
Try:
If T>10:Then:35+Y\->\Y:0\->\X:End
Lbl 0
I don't see any problem with this code as it is. It does the same thing as
what you posted. I hope that I could be of assistance.
Signed,
Thomas J. Hruska
|----------------------------------------------------|
| Shining Light Productions |
| "Meeting the needs of fellow programmers" |
| |
| C/C++ programs |
| QBasic programs |
| JavaScript |
| TI-Basic |
| HTML |
| |
| Search for our web site at |
| www.geocities.com/SiliconValley/Heights/8504/ |
| |
| We use a dynamic web server for most of our |
| documents!!! |
| Soon to go to a full JavaScript 1.1 web site! |
|----------------------------------------------------|
References:
- 82 Prob.
- From: David Endahl <endahld@scnc.wmston.k12.mi.us>