Computer Science Canada Nested if Statements |
Author: | Brandon9009 [ 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. ![]() |
Author: | Insectoid [ 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. |