1
00:00:01,420 --> 00:00:02,830
Hey, guys, what's up?

2
00:00:03,280 --> 00:00:08,300
So in the last radio I discussed with you, how do all the flow of lube?

3
00:00:09,160 --> 00:00:11,350
And we discussed about the big.

4
00:00:11,650 --> 00:00:14,680
Now in this video, we will discuss what is continue.

5
00:00:15,500 --> 00:00:17,020
Okay, so let us revise.

6
00:00:19,800 --> 00:00:21,360
So what is the normal flow of a loop?

7
00:00:21,750 --> 00:00:25,470
So if you are having a loop here and this is my condition.

8
00:00:26,800 --> 00:00:29,310
So what will happen, these instructions?

9
00:00:29,700 --> 00:00:31,440
And this is my ending of the loop.

10
00:00:31,710 --> 00:00:37,110
So if the condition is true, if the condition is true, you will go inside the loop and you will execute

11
00:00:37,170 --> 00:00:38,760
each one of the instructions.

12
00:00:39,030 --> 00:00:41,610
And after reaching here, you will again check the condition.

13
00:00:41,910 --> 00:00:44,790
If the condition is again through, you will again come inside the loop.

14
00:00:45,030 --> 00:00:45,640
You will execute.

15
00:00:45,720 --> 00:00:49,410
Again, all these instructions and then you will again check the condition.

16
00:00:49,650 --> 00:00:53,370
And if the condition is true, then only you will reach here.

17
00:00:53,430 --> 00:00:57,180
So if the condition is false, then only you can reach here.

18
00:00:57,690 --> 00:01:00,720
And if the condition is true, you will go inside the loop.

19
00:01:01,860 --> 00:01:02,090
OK.

20
00:01:02,460 --> 00:01:04,840
So what does Blake do, if you will, right.

21
00:01:05,160 --> 00:01:05,850
Break here.

22
00:01:06,570 --> 00:01:08,460
And this big should rent get executed.

23
00:01:08,670 --> 00:01:10,410
You will likely reach here.

24
00:01:11,070 --> 00:01:11,410
OK.

25
00:01:11,760 --> 00:01:13,680
Now let's see what continue to do.

26
00:01:14,370 --> 00:01:19,230
So if you are having a loop, let's say you are having a loop and some condition.

27
00:01:19,230 --> 00:01:20,090
Is RTM here?

28
00:01:22,170 --> 00:01:29,550
Now, these are some instructions and then there is a continuous statement and then there are some instructions

29
00:01:30,240 --> 00:01:31,770
and this is the ending of the loop.

30
00:01:32,160 --> 00:01:36,510
So if this condition is true, if this condition is true, go inside the loop.

31
00:01:36,900 --> 00:01:37,980
I will go inside the loop.

32
00:01:38,040 --> 00:01:39,780
I will execute all these instructions.

33
00:01:40,080 --> 00:01:41,130
And what will happen now?

34
00:01:41,340 --> 00:01:43,770
I will execute this containing instructions.

35
00:01:44,070 --> 00:01:50,010
So the meaning of continue is go up the meaning of continuous go up.

36
00:01:50,370 --> 00:01:51,150
Check the condition.

37
00:01:51,180 --> 00:01:53,490
If the condition is to go down.

38
00:01:54,880 --> 00:02:01,150
Hit the continuous treatment, go up, if the condition is false, then you will reach here.

39
00:02:03,050 --> 00:02:03,300
OK.

40
00:02:04,220 --> 00:02:06,890
So I think the meaning of continue is now clear.

41
00:02:07,340 --> 00:02:11,960
So continue means go up and check the condition, go upward.

42
00:02:12,110 --> 00:02:13,880
Check the condition if the condition is true.

43
00:02:14,240 --> 00:02:15,050
Again, come inside.

44
00:02:15,050 --> 00:02:16,470
The loop of the condition is false.

45
00:02:17,180 --> 00:02:18,230
Come out of the loop.

46
00:02:18,530 --> 00:02:19,660
So let's see an example.

47
00:02:21,630 --> 00:02:23,700
So let's name this file as continue.

48
00:02:27,960 --> 00:02:28,830
So continue

49
00:02:31,450 --> 00:02:32,730
not CVP.

50
00:02:34,530 --> 00:02:35,970
OK, so what I'm doing here is.

51
00:02:36,410 --> 00:02:37,750
So this was my break code.

52
00:02:38,340 --> 00:02:41,510
I will copy and paste this whole code here and I will do it.

53
00:02:41,520 --> 00:02:42,580
Just a minor change.

54
00:02:43,020 --> 00:02:45,360
What I will do is sort of this big straight went.

55
00:02:45,360 --> 00:02:45,980
I will write.

56
00:02:45,990 --> 00:02:46,650
Continue.

57
00:02:46,740 --> 00:02:47,870
So continue.

58
00:02:49,530 --> 00:02:49,790
OK.

59
00:02:50,190 --> 00:02:51,230
Now what really my output.

60
00:02:51,480 --> 00:02:52,620
Let's try to understand.

61
00:02:53,340 --> 00:02:54,450
So initially.

62
00:02:55,140 --> 00:03:01,820
So initially the value of AI is to this condition will only be true if the value of FI is eight or 16.

63
00:03:02,190 --> 00:03:06,630
So my output will be two, three, four, five, six and seven.

64
00:03:07,050 --> 00:03:08,850
Now the value of why is it.

65
00:03:09,150 --> 00:03:10,830
So this condition becomes true.

66
00:03:11,030 --> 00:03:13,510
AI plus plus the new value of FI is mine.

67
00:03:13,740 --> 00:03:14,340
Continue.

68
00:03:14,420 --> 00:03:16,230
Continue means go upward.

69
00:03:17,220 --> 00:03:17,970
Check the condition.

70
00:03:17,970 --> 00:03:18,960
Condition is true.

71
00:03:19,290 --> 00:03:20,680
Nine is less than Ghostwood.

72
00:03:20,690 --> 00:03:21,180
20.

73
00:03:21,320 --> 00:03:21,670
Yes.

74
00:03:21,870 --> 00:03:22,410
Go down.

75
00:03:22,770 --> 00:03:25,000
You will reach here CRT.

76
00:03:25,080 --> 00:03:26,540
So nine will reprinted.

77
00:03:27,120 --> 00:03:29,400
See it is not printed here.

78
00:03:29,850 --> 00:03:30,740
So nine Ripponden.

79
00:03:30,840 --> 00:03:31,350
Similarly.

80
00:03:31,380 --> 00:03:31,770
Ten.

81
00:03:31,830 --> 00:03:32,400
Eleven.

82
00:03:32,400 --> 00:03:32,880
Twelve.

83
00:03:33,390 --> 00:03:33,990
Thirteen.

84
00:03:33,990 --> 00:03:35,340
Fourteen, fifteen.

85
00:03:35,610 --> 00:03:37,430
So the value of I will become sixteen.

86
00:03:37,920 --> 00:03:39,930
This condition will again become true.

87
00:03:40,170 --> 00:03:43,200
And then you will increment the value of face of a new vilify.

88
00:03:43,230 --> 00:03:44,670
Becomes seventeen.

89
00:03:45,150 --> 00:03:48,330
And then you will again hit the continuous treatment.

90
00:03:48,600 --> 00:03:54,620
So control statement means go up and check the conditions under 17 is less than goes 20.

91
00:03:55,410 --> 00:03:57,450
You will again come inside the loop.

92
00:03:57,870 --> 00:03:59,910
And then you will print 17.

93
00:04:00,000 --> 00:04:01,470
Then 18, then 19.

94
00:04:01,470 --> 00:04:02,340
And then 20.

95
00:04:02,700 --> 00:04:03,750
So what is my output?

96
00:04:03,780 --> 00:04:07,110
My output is starting from two till 20.

97
00:04:07,500 --> 00:04:09,450
Except eight and sixteen.

98
00:04:09,750 --> 00:04:11,730
So these two numbers will not be printed.

99
00:04:12,040 --> 00:04:12,360
Rest.

100
00:04:12,420 --> 00:04:14,220
All the numbers will be there.

101
00:04:14,390 --> 00:04:14,660
Okay.

102
00:04:15,000 --> 00:04:16,270
Except these two numbers.

103
00:04:16,710 --> 00:04:19,350
All the numbers from total quantity will be present.

104
00:04:19,650 --> 00:04:21,800
So let's see what allowed for that.

105
00:04:21,840 --> 00:04:23,600
We have generated is correct on not.

106
00:04:26,070 --> 00:04:27,890
OK, so our output is correct.

107
00:04:28,310 --> 00:04:31,190
So seven, eight, nine, eight is missing.

108
00:04:31,520 --> 00:04:32,540
Fifteen and seventeen.

109
00:04:33,140 --> 00:04:34,310
It is missing.

110
00:04:34,610 --> 00:04:35,390
Now, one more thing.

111
00:04:35,750 --> 00:04:36,170
If.

112
00:04:37,410 --> 00:04:40,100
You will remove this statement then?

113
00:04:40,200 --> 00:04:43,920
I think that this loop will become an infinite loop.

114
00:04:44,910 --> 00:04:48,150
So let's try to understand why this loop will become an infinite loop.

115
00:04:51,080 --> 00:04:56,420
So when the value of I used to do will get printed three, four, five, six and seven.

116
00:04:56,810 --> 00:04:57,770
So this is my output.

117
00:04:58,070 --> 00:04:59,730
Now the value of I will become eight.

118
00:04:59,940 --> 00:05:00,280
Okay.

119
00:05:00,650 --> 00:05:01,790
You will check this condition.

120
00:05:01,870 --> 00:05:03,230
I'm ordered equals zero.

121
00:05:03,320 --> 00:05:03,500
Yes.

122
00:05:03,500 --> 00:05:05,060
The condition is to go inside the loop.

123
00:05:05,090 --> 00:05:05,930
Continue.

124
00:05:06,380 --> 00:05:08,390
Continue means go up.

125
00:05:08,840 --> 00:05:09,680
I will go up.

126
00:05:09,920 --> 00:05:12,480
Condition is to go down again.

127
00:05:12,730 --> 00:05:13,320
Continue.

128
00:05:13,460 --> 00:05:14,180
Go up.

129
00:05:14,300 --> 00:05:15,920
Condition is to go down.

130
00:05:16,220 --> 00:05:16,790
Go up.

131
00:05:16,880 --> 00:05:17,450
Go down.

132
00:05:17,570 --> 00:05:18,080
Go up.

133
00:05:18,140 --> 00:05:18,680
Go down.

134
00:05:19,100 --> 00:05:20,510
So this will keep going on.

135
00:05:20,890 --> 00:05:21,160
Okay.

136
00:05:21,470 --> 00:05:22,790
So it is less than 20.

137
00:05:22,880 --> 00:05:24,250
This condition will be too.

138
00:05:24,620 --> 00:05:26,360
And I will go down.

139
00:05:27,290 --> 00:05:27,740
I more.

140
00:05:27,960 --> 00:05:29,090
It is a zero.

141
00:05:29,210 --> 00:05:30,370
So this condition is true.

142
00:05:30,710 --> 00:05:32,830
And then I will hit the continuous treatment.

143
00:05:32,840 --> 00:05:34,370
So continue will say go up.

144
00:05:35,080 --> 00:05:35,380
Okay.

145
00:05:35,630 --> 00:05:39,500
So this vile, the condition inside the vial I listed goes to 20.

146
00:05:39,590 --> 00:05:42,710
If the value of I is it this will say go down.

147
00:05:43,040 --> 00:05:47,630
And when I hit and when I will hit the continuous treatment it will say go up.

148
00:05:48,020 --> 00:05:48,800
So go down.

149
00:05:49,340 --> 00:05:49,880
Go up.

150
00:05:49,970 --> 00:05:50,540
Go down.

151
00:05:50,540 --> 00:05:50,930
Go up.

152
00:05:50,990 --> 00:05:53,720
This will keep going on Margaretville Bidis.

153
00:05:53,870 --> 00:05:56,350
And after this infinite loop will be there.

154
00:05:57,050 --> 00:05:58,860
So how to reject infinite loop basically.

155
00:05:59,060 --> 00:06:01,250
Those would be four lines will not be printed.

156
00:06:03,810 --> 00:06:05,150
So two, three, four, five, seven.

157
00:06:05,420 --> 00:06:09,140
And remember those two, four lines that used to be here?

158
00:06:09,470 --> 00:06:10,960
Those are four lines are not.

159
00:06:11,270 --> 00:06:13,020
That means this loop is running.

160
00:06:13,610 --> 00:06:13,850
OK.

161
00:06:14,000 --> 00:06:16,040
This loop is running in five number of times.

162
00:06:18,310 --> 00:06:18,520
OK.

163
00:06:18,600 --> 00:06:20,200
So how to redact infinite loop?

164
00:06:20,460 --> 00:06:21,870
Those two lines are not present.

165
00:06:22,140 --> 00:06:25,080
That means I can see this loop is an infinite loop.

166
00:06:26,980 --> 00:06:29,250
Or you can also verify it.

167
00:06:29,280 --> 00:06:31,960
And just bringing Telo here, sociopath.

168
00:06:32,850 --> 00:06:33,510
I am printing.

169
00:06:33,540 --> 00:06:33,840
Hello.

170
00:06:35,370 --> 00:06:36,060
Now let's see.

171
00:06:42,880 --> 00:06:48,070
OK, so you can see her is getting printer and two, three, four, five, seven was also getting was

172
00:06:48,070 --> 00:06:49,090
also getting printer.

173
00:06:49,450 --> 00:06:52,570
But the speed is so fast that it was not visible.

174
00:06:56,990 --> 00:07:00,310
OK, so this is it for this, we do, if you have any doubt, feel free to ask.

175
00:07:00,710 --> 00:07:00,970
I'll get.

176
00:07:00,970 --> 00:07:01,410
Thank you.
