What will the output of this program be if the user inputs 100?INPUT numIF num > 90THEN        OUTPUT "Yellow"ELSE        OUTPUT "Green"(1 point)ResponsesGreenGreenYellowYellownumnumOUTPUT

1 answer

Based on the provided pseudocode, if a user inputs 100, the program will evaluate the condition in the IF statement. Here’s the breakdown:

  1. The user inputs 100, so num becomes 100.
  2. The condition checks if num > 90. Since 100 is greater than 90, the condition evaluates to TRUE.
  3. Since the condition is true, the program will execute the THEN block.

The output will be:

Yellow