Question: Programming in C: Print either Fruit, Drink, or Unknown (followed by a newline) depending on the value of userItem. Print Unknown (followed by a newline)
Programming in C:
Print either "Fruit", "Drink", or "Unknown" (followed by a newline) depending on the value of userItem. Print "Unknown" (followed by a newline) if the value of userItem does not match any of the defined options. For example, if userItem is GR_APPLES, output should be: Fruit #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
