Question: Using for loop Using counter-controlled repetition Using continue Calculations on arrays Using the symbolic constant Problem Description Develop a C program that Declare an array
Using for loop Using counter-controlled repetition Using continue Calculations on arrays Using the symbolic constant Problem Description Develop a C program that Declare an array of integers of size 7 called number. Use the symbolic constant (#define) to specify an array's size Reads in seven positive integers and store them in number. Finds and prints the maximum odd number and index location in the array. The output has to be organized as shown in the sample output: Sample Output Enter positive integer number #1: 5 Enter positive integer number #2: 4 Enter positive integer number #3: 2 Enter positive integer number #4: 7 Enter positive integer number #5: 9 Enter positive integer number #6: 0 Enter positive integer number #7: 10 The maximum odd number is 9 (Array index = 4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
