We are dealing with a 1D array of n integer values.
1. Write a function called InputArray that inputs an array of integers.
1
Expert's answer
2021-07-08T04:03:18-0400
voidInputArray(){
int array_1[5];
cout<<"Enter the elements of the array\n";
for(int i=0; i<10; i++){
cout<<"Enter element\t"<<(i+1);
cin>>array_1[i];
}
}
Comments
Leave a comment