[Solved] : Question 129838

Write a C++ program that creates two one dimensional arrays “A” and “B” of size 10 elements each. The main program should get the input in the array “A” from the user and initialize array “B” with values “0”. Your program should calculate the square (number * number) of each element of array “A” and should store in the square value in corresponding positions (index) in the array “B”. In the end, the main program (main function) prints the calculated values of array “B”. Also display the values in array B which are divisible by 3 (if any).

Expert Answer

Answer to : Question 129838

Leave a Comment


We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?