Re: HELP!
[Prev][Next][Index][Thread]
Re: HELP!
On the Ti's, you don't have a character, or string. You probably know
C, based on your code. In Ti Basic, = compares, and sto (the right
arrow) assigns. The characters are actually numbers (in mem, "real").
So, whenever i had done something like this, i assigned values to the
letters, so that if the word didn't match, the vals wouldn't match.
PS in the example NAM is actually Value N * Value A * Value M
My way:
:2\->\A:2\->\B:2\->\H:2\->\L
:0\->\ Note: all other letters execpt B,L,A,H
:Input X
:If X=(B*L*A*H) Note: you could replace (B*L*A*H) with 2*2*2*2 or 16
:Then
:Disp "You got it"
:Else
:Disp "FOOL"
:End
References:
- HELP!
- From: Chad R Schaeffer <ciro4@JUNO.COM>