Program to insert an array
#include<iostream>
#include<conio.h>
int main()
{
int Info[6]={};
int ptr=0;
cout<<"Insert the elements: "<<endl;
for(ptr=0;ptr<6;ptr++)
{
cin>>Info[ptr];
}
cout<<" Array: "<<endl;
for(ptr=0;ptr<6;ptr++)
cout<<endl<<Info[ptr];
getch();
return 0;
}
No comments :
Post a Comment