Question: Write the suitable snip code using for statement to display the number of apples sold each odd day in first half of June as

Write the suitable snip code using for statement to display the number of apples sold each odd day in first

Write the suitable snip code using for statement to display the number of apples sold each odd day in first half of June as output display in Figure 2. Figure 2: OUTPUT CONSOLE Number of apples sold on Day 1 of June: 25 Number of apples sold on Day 3 of June: 26 Number of apples sold on Number of apples sold on Number of apples sold on Number of apples sold on Day 5 of June: 22 Day 7 of June: 30 Day 9 of June: 20 Day 11 of June: 28 Number of apples sold on Day 13 of June: 23 Number of apples sold on Day 15 of June: 27 Note: Assume the bold word in output console is initialize value of array already written at the beginning of the code as shown below. int apple [15] = {25, 23, 26, 24, 22, 27, 30, 21, 20, 22, 28, 29, 23, 22, 27}

Step by Step Solution

3.49 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Initialize the array with the given values apple 25 23 2... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!