+ 1

How do you set a range of values for a loop statement

4th Jun 2019, 9:24 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
2 Respostas
+ 2
start=7,end=14; for(i=start;i<end;i++) while(start<end){ start++; }
4th Jun 2019, 11:06 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
int main() { int n,i,j; cout<<"How many numbers you want to enter?"; cin>>n; for(i=0;i<n;i++) { cout<<"You want to enter "<<n<<" numbers."; } return 0; }
5th Jun 2019, 5:48 AM
Yashvi Shah
Yashvi Shah - avatar