Respuesta :
Answer:
BEGIN
INPUT N
IF N>0 AND N<10 THEN
OUTPUT "blue"
ELSE
IF N>10 AND N<20 THEN
OUTPUT "red"
ELSE
IF N>20 AND N<30 THEN
OUTPUT "green"
ELSE
OUTPUT "It is not a correct color option"
ENDIF
END.
Explanation:
BEGIN
INPUT N
IF N>0 AND N<10 THEN
OUTPUT "blue"
ELSE
IF N>10 AND N<20 THEN
OUTPUT "red"
ELSE
IF N>20 AND N<30 THEN
OUTPUT "green"
ELSE
OUTPUT "It is not a correct color option"
ENDIF
END.
Explanation:
Ask a user to enter a number. If the number is between 0 and 10, write the word blue. If the number is between 10 and 20, write the word red. if the number is between 20 and 30, write the word green. If it is any other number, write that it is not the correct color option
pseudo-code is:
Write "Please enter a number"
Read colornum
If(colornum >0 and colornum <= 10)
Write blue
else If(colornum >10 and colornum <= 20)
Write red
else If(colornum >20 and colornum <= 30)
Write green
else
Write "not a correct color option"
What is pseudo code?
- Pseudocode is also called false code.
- Pseudocode is a natural way of programming description that does not require any strict programming language syntax or underlying technology considerations.
- In simple words, the pseudocode is the planning or designing program.
To learn more about Pseudocode refer to:
https://brainly.com/question/24953880
#SPJ2