Thread: I need help :(
View Single Post
Old 12-04-2006, 12:50 AM   #2 (permalink)
Apokalipse
Apokalipse's Avatar
 

Join Date: Jun 2003

Location: Melbourne, Australia

Posts: 13,739

Apokalipse has a spectacular aura aboutApokalipse has a spectacular aura about

Default

I haven't done a whole lot of programming (I've only used my TI-84, and a little bit of C), but I think this should do it:
make the guessed number, and the randomly picked number to be different variables (for example X for guessed number, Y for randomly picked number)

then do something like this:

If X>Y
Print "Too high"
If X<Y
Print "Too Low"
__________________

1 + 1 = 3 if you define 3 as a result of 1 + 1
Apokalipse is offline