لم يعد هذا المتصفح مدعومًا.
بادر بالترقية إلى Microsoft Edge للاستفادة من أحدث الميزات والتحديثات الأمنية والدعم الفني.
Which loop is best suited when you know in advance how many times you want to repeat an action?
while loop
for loop
if statement
Which loop type guarantees that its body runs at least once, even if the condition is false from the start?
do-while loop
What does the break statement do inside a loop?
Skips the current iteration and moves to the next one.
Restarts the loop from the beginning.
Exits the loop immediately, regardless of the loop condition.
What does the continue statement do inside a loop?
Exits the loop immediately.
Skips the rest of the current iteration and moves to the next one.
Pauses the loop until the user presses a key.
You must answer all questions before checking your work.
هل كانت هذه الصفحة مفيدة؟
هل تحتاج إلى مساعدة مع هذا الموضوع؟
هل تريد محاولة استخدام Ask Learn لتوضيح هذا الموضوع أو إرشادك خلاله؟