Question: Write the C# code for the following problem. Declare an array to store five values; they could be decimal numbers. Prompt the user to store
Write the C# code for the following problem. Declare an array to store five values; they could be decimal numbers. Prompt the user to store values into the array. Then prompt the user for a value to add to each element of the array. Add that value to each element of the array and print the new values. Make sure you actually change the values in the array. The output should look like this (note that it should work for any values that are input, these are just examples). You must use loop(s) to process the array.
Enter number: 1
Enter number: 2
Enter number: 3
Enter number: 4
Enter number: 5
Enter value to add: 10
After adding 10 the values are
11
12
13
14
15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
