Hi, everyone. I'm trying to find the lowest and the highest numbers that a user has had punched in. The code includes a user punching in 4 different numbers, each on a different line. I need help figuring out how to display the highest and lowest number from the numbers the user typed in and then print them. This is suppose to a very basic code using selection structures and variables, but I can't figure it out. I'm not if I can use the 'if statement' to figure this out? I know this is pretty basic, but I'm at a loss. Can anyone help me get started with code? Thanks in advance.
How to find and print the lowest and highest numbers punched in by the user?
Collapse
X
-
Tags: None
-
Kevin,
This time I won't post any code and ask the OP to try do some homework before posting anything.
Thanks,
KalyanComment
-
Originally posted by kalyanrajsistaKevin,
This time I won't post any code and ask the OP to try do some homework before posting anything.
Thanks,
Kalyan
hehehe.... thanks. Too late as this is the same person, but next time...... ;)
On any forum where they could edit the post they removed the question. But on this forum you can't edit old posts so the question is still here.Comment
Comment