Answer to Question #210226 in C++ for Isuri Wijerathne

Question #210226

Loop to ask user to 30 integer


1
Expert's answer
2021-06-24T07:34:37-0400
#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS