ENع
الدرس 04 · Basics

Control flow: if, else and while

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A program runs its lines one after another, top to bottom, until a control-flow statement changes the order. Follow a twelve-line countdown as an arrow marks the line that runs: a while loop repeats its body while n > 0 is true, an if/else picks one of two lines to print on each pass, and the loop stops when its condition turns false.

10 دقيقة9 خطوات5 أسئلةBeginner
شكل 4 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.