Question: Write a C++ code that creates an integer array of size 20. Fill this array with these numbers { 1, 3, 5, 7......), you
Write a C++ code that creates an integer array of size 20. Fill this array with these numbers { 1, 3, 5, 7......), you need to find the pattern in these numbers Find the sum of all of these numbers. Find the mean value of all of these numbers. Print the array on the screen. Print the sum and the mean value.
Step by Step Solution
3.42 Rating (180 Votes )
There are 3 Steps involved in it
include int main int n 20 n represents the array size which is 20 int arraynsum 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
