[TIB] Complete!
[Prev][Next][Index][Thread]
[TIB] Complete!
Here's my program. Thanks to the folks that gave me feedback! Indents here
are for readability, in the program everything is on the far left.
Mnemonics to help read it:
D = Dice
N = Needed for success
S = Successes
----------------
ClLCD
" "->ALL
Input "# of dice: ",D
Input "# to succeed: ",N
0->S
ClLCD
Disp "Results:"
For(R,1,D)
RandInt(1,6)->ROLL
If ROLL>=N
Then
S+1->S
End
ALL+" "+sub("123456",ROLL,1)->ALL
If mod(R,10)==0
Then
Disp ALL
" "->ALL
End
End
Disp ALL
Disp "Successes: ",S
Follow-Ups:
References: