Nested if Statements
Author |
Message |
Brandon9009
|
Posted: Mon Nov 05, 2012 10:00 am Post subject: Nested if Statements |
|
|
Hey guys I really need help finding the smallest of three numbers.
It says to enter three distinct numbers and use a nested if statement to determine which is the smallest of the three numbers. and display the smallest of the three numbers entered. ![Rolling Eyes Rolling Eyes](http://compsci.ca/v3/images/smiles/icon_rolleyes.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Mon Nov 05, 2012 10:48 am Post subject: RE:Nested if Statements |
|
|
Compare the first two numbers. If the first is greater, compare it to the third. If the second was greater, compare *it* to the third.
You can directly translate the above statement into code. |
|
|
|
|
![](images/spacer.gif) |
|
|