#include<iostream>
using namespace std;
int main()
{
int num[100],limit;
cout<<"Enter array limit: "<<endl;
cin>>limit;
int *p;
p=num;
for (int i = 0; i < limit; i++)
{
cout<<"Enter value of of a["<<i<<"] :"<<endl;
cin>>num[i];
}
for (int i = 0; i < limit; i++)
{
cout<<"Value of a["<<i<<"] :"<<*p++<<endl;
}
cout<<"******Eaglesoft Porgrammers******"<<endl;
return 0;
}
No comments:
Post a Comment