Question: You have an array that is defined as int array2[4] = {50, 100, 150, 200}; write a for loop and a while loop to print
You have an array that is defined as int array2[4] = {50, 100, 150, 200};
write a for loop and a while loop to print each element of the array with a label in the following manner using printf() with the correct format string.
array2[0] = 50
array2[1] = 100
array2[2] = 150
array2[3] = 200
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
