Search Results

Showing results 1 to 1 of 1
Search took 0.01 seconds.
Search: Posts Made By: mariocatch ; Forum: C and child forums
Forum: C Apr 3rd, 2007
Replies: 11
Views: 5,155
Posted By mariocatch
Here's a simply way to do it with a while loop. Just add more cases if you need to add another line of numbers.



bool Done = false;

while(!Done)
{
cout << i++ << ' ';
if(i == 8)
Showing results 1 to 1 of 1

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC