Author Topic: Find the error in a beginner's program  (Read 13566 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Find the error in a beginner's program
« Reply #15 on: April 30, 2012, 03:26:01 pm »
@persalteas: If you press Enter, it is executing again from the homescreen, not relooping. Your code is looking for the [Clear] key.
[clear]=15
[enter]=9

If you want, try to put a Pause 20 in there before the Repeat loop and see what happens ;)

@Yeong: I think it doesn't work because I programmed If, Repeat, and While to not affect Ans :P

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: Find the error in a beginner's program
« Reply #16 on: April 30, 2012, 03:28:28 pm »
Quote
@persalteas: If you press Enter, it is executing again from the homescreen, not relooping. Your code is looking for the [Clear] key.
[clear]=15
[enter]=9
* persalteas runs far far away and never comes back...
« Last Edit: April 30, 2012, 03:28:40 pm by persalteas »


Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Find the error in a beginner's program
« Reply #17 on: April 30, 2012, 03:31:00 pm »
Hehe :P 'Tis okay, you are using Return properly, which is great (Return is really fast, by the way, especially compared to using labels).

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Find the error in a beginner's program
« Reply #18 on: April 30, 2012, 10:59:26 pm »
Oh I guess I wasn't reading posts clearly. :\
Sig wipe!