350344000012992
الفرق الوحيد بينها و بين الحلقة while أنها تتنفذ مرة واحدة على الأقل لأنها تتأكد من الشرط بعد تنفيذ الأوامر و ليس قبلهم
توضيح الفروقات بين الحلقات الثلاثة Dec 02, 2019 · The do while loop is an exit controlled loop, where even if the test condition is false, the loop body will be executed at least once
شرح While loop (جملة التكرار) - Saeed Al-zahrani Apr 06, 2018 · The do while loops are control flow statements, they execute a block of code at least once and then the iteration of loops depends on the condition which is checked at the bottom of the loop, They are best to use when you want at least once the loop to be executed, for ex About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy Safety How YouTube works Test new features Press Copyright Contact us Creators
طريقة كتابة do-while
4 times thus total time 5+4=9 But in the case of while loop
Conversely, the alternate name for the do-while loop is the exit-controlled and post-checking loop, the reason behind this is that the checking of the loop condition is followed by
The for is usually appropriate for loops in which the initialization and increment are single statements and logically related, since it is more compact than while and it keeps the loop control statements
The for loop is a more concise form of the other loops like while and do while in PHP
الفرق بين when و while و as باللغة الانجليزية | تعلم