Question: PROGRAM IN C!! Need help writing a program that uses IF statements and a FOR loop to print : The first step is to choose
PROGRAM IN C!!
Need help writing a program that uses IF statements and a FOR loop to print :
The first step is to choose from the jar that is labeled both.
What did you get? a (for apple) or o (for orange): p
Invalid input. Make another choice.
What did you get? a (for apple) or o (for orange): a
You chose apple, which means that:
1. The jar that is labeled as both is really apples.
2. The jar labeled as oranges is really both.
3. The jar labeled as apples is really oranges.
Lets try a different sequence
choose from the jar that is labeled both.
What did you get? a (for apple) or o (for orange) or q (for quit): O
You chose orange, which means that:
1. The jar that is labeled as both is really oranges.
2. The jar labeled as apples is really both.
3. The jar labeled as oranges is really apples.
Lets try a different sequence
Choose from the jar that is labeled both.
What did you get? a (for apple) or o (for orange) or q (for quit): q
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
