#include <iostream>
#include <stdlib.h>
using namespace std;
int main (void)
{
const int SIZE = 10;
int array[SIZE];
cout << "Enter " << SIZE << " numbers:" << endl;
for (int *p = array; p < array + SIZE; ++p)
{
cin >> *p;
}
cout << endl << "The numbers:" << endl;
for (int *p = array; p < array + SIZE; ++p)
{
cout << *p << endl;
}
system("pause");
}
Comments
Leave a comment