Answer to Question #182292 in C++ for Banele

Question #182292

write a program that will declare and initialize the following arrays (10, 11, 18, 19, 21, 13, 17, 22, 95, 6)


1
Expert's answer
2021-04-16T12:00:38-0400
#include <iostream>
using namespace std;

int main() {
    int array[10] = {10, 11, 18, 19, 21, 13, 17, 22, 95, 6};

    for ( int i = 0; i < 9; i++ ) {
        cout << array[i] << " ";
    }
    cout << array[9] << "\n";

    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS