Write a program to declare and initialize an array of size 5 and place odd numbers 3,
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Posted Date: