Question: In C++, 8. An array declared as int num[30] has numbers stored in it. Write statements to replace each negative number found in the array
In C++,
![In C++, 8. An array declared as int num[30] has numbers stored](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/6703fe15800d3_9006703fe14e57ad.jpg)
8. An array declared as int num[30] has numbers stored in it. Write statements to replace each negative number found in the array with 0. 10. An array declared as int val[50] has numbers stored in it. Write statements to add up all the even numbers found in this array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
