Write a program that asks the user to enter a number between 1 and 100 in a form. If the
number is less than 10, display “That’s really small.” If it’s between 10 and 50, say “not too big.”
If it’s more than 50, display “That’s a big one!”
display 'Enter a number between 1 and 100'
int n
if n < 10 then
diplay 'That’s really small'
else if 10 <= n <= 50 then
display 'not too big'
else if n > 50 then
display 'That’s a big one!'
Comments
Leave a comment