Write a program that uses three numeric arrays. Store the evennumbers from 2 thr
ID: 3607916 • Letter: W
Question
Write a program that uses three numeric arrays. Store the evennumbers from 2 through 10 in the first array. Store the square ofthe even numbers from 2 through 10 in the second array using thepow function. Store the square root of the even numbers from 1through 10 in the third array using the sqrt function.
After filling the arrays, the program should prompt the user toenter a number. The program should then search for the number inthe first array, and then use the second and third arrays todisplay both the square and the square root of the number. Allowthe user to display the square and square root for as many numbersas desired without having to execute the program again.
Explanation / Answer
please rate - thanks #include #include int main() {int num[5],square[5]; double sqroot[5]; int i,j=0,n; for(i=2;i0) {if(n>10) coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.