Answer to Question #215120 in C++ for Hussein

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.
1
Expert's answer
2021-07-08T04:03:18-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS