#include<iostream.h>
#include<conio.h>
void main()
{
                int array[5],i;
                clrscr();
                for(i=0;i<5;i++)
                                {
                                cout<<"Enter Value for Array["<<i<<"]=";
                                cin>>array[i];
                                }
                cout<<endl;
                for(i=0;i<5;i++)
                                {
                                cout<<"Entered Value of Array["<<i<<"]="<<array[i]<<endl;
                                }
                getch();
}

84.PNG

Advertisements