Question: Write a program called problem2.cpp that asks the user to input ten numbers into an array called x. The program should then go through the
Write a program called problem2.cpp that asks the user to input ten numbers into an array called x. The program should then go through the array, and if any element is negative in the array, it should set it to 0. Output the array at the end to the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
