|
-
Problem
ok guys here is the code im having problems with:
int nKeep = 1;
int var=0;
while(nKeep ==1)
{
if (var== 0)
{
var++;
}
else if (var>0&&var<3)
{
var++;
}
else if (var == 3 && var>0)
{
var--;
}
what im trying to get it to do is increase var uptill 10 and then when var
gets to 10 it decreases back to zero and then when it hits zero it starts
to increase back to 10 again. Thanks in advance......NANOSAURUS
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks