|
-
November 21st, 2009, 05:15 PM
#1
Range wont work?
I want my code to print numbers 1 through 10, only if the input is 1 through 10.
so if the user inputs 4, i want the numbers 1-10 to print.
-
November 21st, 2009, 05:25 PM
#2
Re: Range wont work?
Good for you... do you have any questions for us ?
-
November 21st, 2009, 06:14 PM
#3
Re: Range wont work?
sassy i like it..any more of that and my nips will be hard as stone
what is the code to print?
int z=9;
cin>>z;
if (z>0)
while (z<10)
cout<<"1,2,3,4,5,6,7,8,9<<endl; // instead of having to do this?
also im trying to make the while loop stop printing those numbers. how would i do that?
i thought by making it 9 it would print once and then the second time around it would be 10, create a false statment and stop printing
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|