< C Sharp for Beginners
while (myInt < 10){ // do things... myInt++; }
Do loops are like while loops, except they always execute at least once.
do {
// do things...
} while (myVar != false);
for (int i=0; i < 10; i++){
if (i == 10)
break;
if (i % 2 == 0)
continue;
// do things
}
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.