Question: Write a program to declare and initialize an array of size 5 and place odd numbers 3, 5, 7,9 and 11 in it. Declare and
Write a program to declare and initialize an array of size 5 and place odd numbers 3, 5, 7,9 and 11 in it. Declare and initialize another array of size 5 and place even numbers 4, 6, 8,10 and 12 in it. Write a for loop to add each element and place it in a third array of the same dimensions. Display each array. 2- Write a program to display an array of size 5 in reverse order. Test your program with the odd array you defined in previous program.
Step by Step Solution
3.54 Rating (154 Votes )
There are 3 Steps involved in it
Lets tackle each part of the problem step by step Part 1 Working with Two Arrays 1 Declare and Initi... View full answer
Get step-by-step solutions from verified subject matter experts
