Implementing Iteration Logic

C Sharp > Implementing Iteration Logic
18.10.2016 17:12:03


Наиболее часто встречающиеся слова в статье:

[dataToEnter] [foreach] [ChecklfUserHasMoreDataO] [moreDataToEnter] [Implementing] [Iteration] [ChecklfUserWantsToEnteffDataO]


Статья:

Implementing Iteration Logic

•    for loop

for (int i = 0 ; i < 10; i++) { ...}

•    foreach loop

string[] names = new string[l 0]; foreach (string name in names) {... }

•    while loop

bool dataToEnter = ChecklfUserWantsToEnteffDataO; while (dataToEnter)

{

dataToEnter = ChecklfUserHasMoreDataO;

}

•    do Iood

do

{

moreDataToEnter = ChecklfUserHasMoreDataO;

} while (moreDataToEnter);