write a program that will declare and initialize the following arrays (10, 11, 18, 19, 21, 13, 17, 22, 95, 6)
#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;
}
Comments
Leave a comment