5.8 Day of the week defis

Hello everyone! We saw, what was the "for" loop. And in this course we will see the "as long" loop. We’re going to make an example of a "while" loop and compare it to a "for" loop. So, we come here. We write int count =1 "while" In parentheses count is different from 6 on affiche count value est + count Et count ++ Ici comme avec la boucle for. Initialization is an expression that initializes the loop. It usually declares and assigns an iterator. Termination is an expression that is evaluated before each loop run. If it is evaluated on false, the loop stops. An increment is an expression that is evaluated each time an iteration is performed Now, executed the code. As we can see, from 1 Up to 5. Since it is different from six, for example if it was different from 7 1 Up to 6. Now we will see how we can do it with the "for" loop So for between parentheses count equals 1. count different from 6 count ++ Display Execute the code. But first, we’re going to write a sentence to differentiate the two. Then, we execute the code and as we can see it’s exactly the same thing. That’s it for this video. As you’ve seen, it wasn’t that hard to understand. In the next video, we’ll see what "Do while" is. And it’s almost the same as "while". Go! I’ll see you next time.