0 Replies - 3429 Views - Last Post: 07 April 2007 - 01:40 PM Rate Topic: -----

#1 Tman13  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-April 07

Calculator program

Posted 07 April 2007 - 01:40 PM

:P Hi guys, I have a lottery calculator prgram im working on an I can't figure out how to get it to stop when you have $0 (It's part of a bigger program)
:Lbl 7
:Output(3,7,"The")
:Output(4,5,"Lottery")
:ClrHome
:Menu("Is this...","First time?",HH,"Or not",II)
:Lbl HH
:15->ZY
:Goto II
:Lbl II
:ZY-5->ZY
:Disp "Your number:","Winner:"
:Pause
:randInt(311,321)->U
:randInt(311,321)->V
:Output(1,13,U)
:Output(2,8,V)
:Pause
:clrhome
:If U=V
:ZY+10->ZY
:Disp "You win!","You have M"
:Pause
:Output(2,10,ZY)
:Pause
:Goto ZZ
:Else
:Disp "You lose...",You have M"
:Pause
:Output(2,10,ZY)
:Goto ZZ
This game is for fun.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1