+ 1
How do you set a range of values for a loop statement
2 Antworten
+ 2
start=7,end=14;
for(i=start;i<end;i++)
while(start<end){
start++;
}
+ 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;
}