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).
1
Expert's answer
2020-08-17T07:35:24-0400
Dear Arslan, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
need answer for the same question exect.
Leave a comment