Question #210226

Loop to ask user to 30 integer


Expert's answer

#include<iostream>
using namespace std;
int main(){
	int arr[30];
	cout<<"Please enter 30 integers"<<endl;
	for(int i=0; i<30; i++){
		cout<<"Integer \t"<<(i+1)<<"\t\n";
		cin>>arr[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