Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

3 conditions for a while loop c++

// for each iteration, test three conditions
     while (small < large && large > 0 && small < MAXSMALL)
     {
         std::cout << ".";
         small++;
         large-=2;
     }
 
PREVIOUS NEXT
Tagged: #conditions #loop
ADD COMMENT
Topic
Name
9+7 =