ARRAY PPROGRAM TO ADD FIVE NUMBERS

in programing •  4 years ago 

using namespace std;

int main() {
int numbers[5];
cout << "Enter 5 numbers: " << endl;
for (int i = 0; i < 5; ++i) {
cin >> numbers[i];
}
cout << "The numbers are: ";

for (int n = 0; n < 5; ++n) {
    cout << numbers[n] << "  ";
}

return 0;

}

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!