About this topic

Here you will be introduced to other iteration statements - the while and do while loops in C#. The main idea is that the while loop executes some block of code while the test-expression is evaluated to true. First is checked if the expression is true or not and then by the returned value - the bloke of code will be executed or not. The difference between the while and do while loop is that when you are using the do while, first of all, the block of code will be executed and after that checked the test-expression if it is true or not and if you or going to continue executing or not, also the syntax is different from the while one. More details, explanations, and examples you will find in the video.