Question: This program segment is supposed to display NEGATIVE if Number is less than 0, SMALL if Number lies between 0 and 5 (inclusive), and LARGE
This program segment is supposed to display NEGATIVE if Number is less than 0, SMALL if Number lies between 0 and 5 (inclusive), and LARGE if Number is greater than 5. Correct the logic error so that this pseudocode works correctly.
5 Then Write "SMALL" Else Write "LARGE" End If End If" class="fr-fic fr-dib" width="261" height="267">
If Number < 0 Then Write "NEGATIVE" Else If Number > 5 Then Write "SMALL" Else Write "LARGE" End If End If
Step by Step Solution
3.41 Rating (151 Votes )
There are 3 Steps involved in it
If Number 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
