ENع
الدرس 04 · Basics

Control flow: if, else and while

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

A C# program runs its statements one after another, top to bottom, until a control-flow statement changes the order. Follow a ten-line countdown in Program.cs 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. In C#, every condition must be a bool.

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

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