Help Please, Need Help Putting thing Together.

Write a program that initializes an array of six integers with the values 10, 22, 13, 99, 4, and 5. Print each of these out and
then print their sum.

This is all I have.

#include <iostream>
using namespace std;
int main()

Do you know how to make a basic array with default values? Here is an example array with two values:

int example_array[] = {1, 2};

I'll let you figure out how to change to to have the six numbers you need in it.
Make an array
For loop to print out and add
Once exit loop
Print out the sum
Topic archived. No new replies allowed.