Читать книгу C für Dummies - Dan Gookin - Страница 11
SCHLÜPFRIGE SCHLEIFEN UND IHR ZUSAMMENHANG
Оглавлениеfor
for (startanweisung; bedingung; endanweisung)
{ tue(etwas); }
while
while (bedingung) { // der Rumpf wird vielleicht nie ausgeführt tue(etwas); }
do-while
do { // der Rumpf wird mindestens einmal ausgeführt tue(etwas); } while (bedingung);