Loop to ask user to 30 integer
#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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment