00:01
Hello students, we are asking the question, which loop structure always execute at least once? means which of the following lobe which at least execute once.
00:11
So let's start with our while loop.
00:14
So while loop is while loop is able to execute at least once.
00:18
So let's check.
00:19
So here we are taking a condition int i is equal to one while i, while i is greater than if we are going to write.
00:34
File i is greater than 1 then we need to print f what we need to print f is print f we need to write number is i right so definitely if we close it so here we can write here condition not follows why not follows because i is equal to 1 and condition is if i is greater than one then this loop will execute but here condition not follows hence loop will never execute it means while loop has a condition in while loop there may be condition that loo will never execute so this is correct uh this is incorrect option so let's talk about our second loop which is 4 loop right so let's say if 4 loop is started from i is equal to 1 and the condition says that i is less than 1 and increment right so definitely if we are going to write let's say we are writing here a message if loop executes and matches will be printed according to the system loop is running right so definitely we need to close it and this so here if we see here condition says that i is equal to one but i is less than one it means loop will never execute again will never execute it means according to this conclusion we can say that there may be exist a condition where loop will never execute it means loop will at least never execute once.
02:43
So 4 loop is not the answer to.
02:45
So we are going to write here do while loop.
02:49
Right.
02:50
So basically if we are going to write here, this is do while loop.
02:55
So basically it started from let's say int n is equal to 1.
03:01
So do while loop states that do and print...