In C++. Question 9 (1 point) For the following array declaration, write an appro
ID: 3721488 • Letter: I
Question
In C++.
Question 9 (1 point) For the following array declaration, write an appropriate for statement that would setall of the array's values equal to 45. No comments or functions are necessary. Be sure to strike the Enter key before you click on the Save button. int b[74] ab Save Question 10 (1 point) For the following array declaration, write an appropriate for statement that would display all of the array's values, each on a different line. No comments or functions arenecessary. Be sure to strike the Enter key before you click on the Save button. double a [37]Explanation / Answer
Ans:9
for(int i = 0; i<74; i++)
{
b[i] = 45;
}
===============================================================
Ans:10
for(int i = 0; i<37; i++)
{
cout<<a[i]<<endl;
}
===============================================================
Kindly Check and Verify Thanks..!!!
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.