Print Larger, Sometimes
Computer programs can also make more complex decisions based on multiple pieces of data.
To illustrate this, let's complete the short snippet of code below. You should assume that three variables are
already declared and have their values set:
Int values, and
Boolean. You do not
need to declare or modify their values.
You should write a snippet of code containing a conditional expression to accomplish the following goal. If the
x is strictly greater than
y, you should print "Larger". Otherwise you should print "Smaller".