Conditionals Problems

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7

Nesting IF Blocks

In this problem, you will use two if-else blocks to decide if a number is positive, negative, or zero. Add a nested if-else block and each of the output blocks to the program. Then, test your program by changing the variable value to a negative number, positive number, and zero. You should expect the output to be the following when value is -2.

-2 is a negative number.

Coding:

Blocks

PreviousNext