Function In C++ part 4 [28]
#include<constream.h>
#include<iomanip.h>
void show(int arr[]);
void main(){
clrscr();
int num[5];
cout<<"enter a numbers";
for(int i=0;i<5;++i)
cin>>num[i];
show(num);
getch();
}
void show(int arr[])
{
for(int i=0;i<5;++i)
cout<<arr[i];
}
No comments:
Post a Comment