Using if
statements with compound conditions (like &&
), make a guessing game of two questions similar to the Twenty Questions assignment.
However, this time you must accomplish it using if
statements with compound conditions and you must not use else if
or else
or nested if
s.
Again, here are some sample responses, for the non-creative among you.
inside
outside
both
alive
houseplant
bison
dog
not alive
shower curtain
billboard
cell phone
©2017 Graham Mitchell