Loops
“for” loopfor (initialization; test; increment/decrement){ …… /* statements */}for (j = 0; j j ++){ printf(“shoop “);}
“while” loopwhile (test) { …. /* statements */}j = 0;while (j < 10){ printf(“shoop “); j++;}
Previous slide
Next slide
Back to first slide
View graphic version