Question: using qt spim: Define two variables: one static (integer) array and one to hold an integer sum. The array should hold 6 integers. Write a
using qt spim:
- Define two variables: one static (integer) array and one to hold an integer sum. The array should hold 6 integers.
- Write a loop to input integers from the user to fill the array.
- Write a second loop that will print each number in the array to the console.
- Example format: "Array: 1 2 3 4 5 6"
- Add code to collect the sum of all values as you're printing out each value.
- Insert the sum into your defined variable.
- Print the resulting sum to the console.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
