Question #215120

We are dealing with a 1D array of n integer values.
1. Write a function called InputArray that inputs an array of integers.

Expert's answer

void InputArray(){
	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];
	}
 
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS