#include <iostream> #include <conio.h>using namespace std;int main () { int* array = new int [20]; for (int i=0; i<20; i++) { cout<<"Enter the "<<i+1<<" elemet of the array: "; cin>>array[i]; } cout<<"So, this is the array :"<<endl; for (int i=0; i<20; i++) { cout<<array[i]<<" "; } delete [] array; _getch(); return 0;}
Comments