Write a c++ program that has two 3 by 4 two dimensional arrays in main initializ
ID: 3533082 • Letter: W
Question
Write a c++ program that has two 3 by 4 two dimensional arrays in main initialized to the odd numbers in the first array {1,3,5,...} and even numbers in the second array {2,4,6,...}. Pass the two arrays to a function called AddArrays and return the product of the two arrays {1*2, 3*4,5*6,...} in another two dimensional array. The results in the product array will be {2,12,30,...}. You will need to print the content of the two arrays after you return from AddArrays function using a loop. Finally, print the content of the product array in LOOPS such as the following:
1 * 2 = 2
3 * 4 = 12
5 * 6 = 30 and so on
Explanation / Answer
Enjoy!
http://ideone.com/11rgpI
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.