1
00:00:01,780 --> 00:00:04,080
OK, so let us solve one more interesting problem.

2
00:00:07,210 --> 00:00:08,190
Problem number four.

3
00:00:10,460 --> 00:00:12,920
So this is going to be the last problem of today's class.

4
00:00:13,290 --> 00:00:14,540
So the problem statement is.

5
00:00:16,120 --> 00:00:19,090
I read in and print.

6
00:00:20,440 --> 00:00:21,370
Falling pattern.

7
00:00:24,080 --> 00:00:25,490
Brent falling.

8
00:00:29,720 --> 00:00:35,570
So if and it goes t my pattern is one, two, three, two.

9
00:00:36,910 --> 00:00:39,670
Three, four, five, four, three.

10
00:00:40,270 --> 00:00:41,380
Similarly, if the really off.

11
00:00:41,530 --> 00:00:43,120
And is five my baton.

12
00:00:43,840 --> 00:00:54,400
One, two, three, two, three, four, five, four, three, four, five, six, seven, six, five,

13
00:00:54,610 --> 00:01:01,600
four, five, six, seven, eight, nine, eight, seven, six, five.

14
00:01:02,700 --> 00:01:04,850
OK, so how we can solve this problem?

15
00:01:07,910 --> 00:01:10,180
So the problem of treatment is I have to read and.

16
00:01:10,600 --> 00:01:14,350
And we have to prevent the falling, but then so the value of honesty.

17
00:01:14,720 --> 00:01:16,620
I am printing Titos.

18
00:01:18,780 --> 00:01:22,530
Similarly, if the value of end is five, I am printing five, it was.

19
00:01:24,770 --> 00:01:30,890
So one thing is crystal clear here that I need a loop and this loop will run and times.

20
00:01:32,910 --> 00:01:34,600
Because we have to print Ando's.

21
00:01:35,040 --> 00:01:41,700
If the value of any story this low vildan two times the value of Ennis is five, this look within five

22
00:01:41,700 --> 00:01:42,060
times.

23
00:01:43,180 --> 00:01:46,200
OK, so how will this Lupron end times?

24
00:01:46,290 --> 00:01:48,180
What I will do, I will use a variable.

25
00:01:48,280 --> 00:01:54,930
I initially I equals when I left in order to win and I was a plus one.

26
00:01:55,560 --> 00:01:59,650
So with the help of these t my luck will run and times.

27
00:02:00,780 --> 00:02:05,880
OK, so each time this loop is learning what I will do, I will print Dettol.

28
00:02:08,430 --> 00:02:08,780
Ben.

29
00:02:15,670 --> 00:02:18,250
So here you can see I am having space's.

30
00:02:24,560 --> 00:02:27,170
Similarly, here I am also having spaces.

31
00:02:28,520 --> 00:02:28,830
Okay.

32
00:02:34,060 --> 00:02:35,480
So how can I bring Daryl?

33
00:02:38,150 --> 00:02:42,770
First of all, I will print spaces, then I will print numbers.

34
00:02:44,730 --> 00:02:50,100
OK, so here's the value of I is one here, the value of AI is two.

35
00:02:50,520 --> 00:02:52,680
And here the value of AI is three.

36
00:02:53,130 --> 00:02:55,530
Similarly here, the value of FI is one.

37
00:02:55,990 --> 00:02:58,680
Here the value of fight is two and so on.

38
00:02:58,800 --> 00:03:00,750
Here, the value of AI is five.

39
00:03:03,940 --> 00:03:05,190
So footprinting idol.

40
00:03:09,620 --> 00:03:11,590
First of all, I will print spaces.

41
00:03:11,990 --> 00:03:13,520
So how many speeches I have to print?

42
00:03:13,670 --> 00:03:16,120
I have to print and minus eyepieces.

43
00:03:17,610 --> 00:03:23,070
You can see here led to the value of and is T and I quote T.

44
00:03:23,280 --> 00:03:28,580
S, I mean, it's Biscet, I will print, I will print and minus face basis debtors' three, minus three.

45
00:03:28,670 --> 00:03:29,880
Now this zeros PCs.

46
00:03:30,330 --> 00:03:33,090
You can see here I am printing zero species.

47
00:03:33,990 --> 00:03:36,150
Okay, let's take one more example.

48
00:03:36,240 --> 00:03:40,080
Suppose and equals five and I equals four.

49
00:03:40,530 --> 00:03:41,970
So how many spaces I will print.

50
00:03:42,180 --> 00:03:45,540
I will print four minus one that this one space.

51
00:03:45,990 --> 00:03:50,370
You can see here and equals five and I equals four.

52
00:03:50,670 --> 00:03:52,680
So I am printing just one space.

53
00:03:53,640 --> 00:03:53,910
OK.

54
00:03:54,600 --> 00:03:58,140
So after printing spaces I have to print the numbers.

55
00:04:03,510 --> 00:04:07,540
If you will look carefully, first, I have to print increasing number.

56
00:04:07,950 --> 00:04:10,080
And then I have to print decreasing number.

57
00:04:10,740 --> 00:04:12,900
First I am printing increasing them.

58
00:04:13,410 --> 00:04:15,750
Then I am printing decreasing numbers.

59
00:04:16,440 --> 00:04:16,660
OK.

60
00:04:17,700 --> 00:04:21,720
So in this first I have to print increasing numbers.

61
00:04:25,020 --> 00:04:27,810
And then I have to print the closing numbers.

62
00:04:32,980 --> 00:04:35,070
So how many are losing the must I have to print?

63
00:04:36,550 --> 00:04:41,050
Here, the vilify is for slam printing, for increasing number.

64
00:04:42,330 --> 00:04:44,290
Hey, the value of AI is three.

65
00:04:44,340 --> 00:04:45,240
So I'm branding.

66
00:04:45,450 --> 00:04:46,400
Think it in number.

67
00:04:47,440 --> 00:04:52,210
Similarly here, the value of FI is to Sam branding to increasing number.

68
00:04:54,270 --> 00:04:55,410
So I have to print.

69
00:04:56,600 --> 00:04:57,830
I increasing numbers.

70
00:04:58,730 --> 00:04:59,420
I have to print.

71
00:04:59,870 --> 00:05:00,860
I encouraging numbers.

72
00:05:01,280 --> 00:05:02,650
OK, so how many degrees in them.

73
00:05:02,660 --> 00:05:03,470
But I have to print.

74
00:05:06,960 --> 00:05:11,370
Hear the value of I is 23 and I am bringing food increasing number.

75
00:05:13,540 --> 00:05:18,310
Here, the value of FI is five and I am printing for decreasing numbers.

76
00:05:21,800 --> 00:05:26,150
Heather Valley of Fire is three and I am printing to releasing them was.

77
00:05:28,100 --> 00:05:33,790
So how many accusing them, but I have to, Brent, I have to print a minus one because numbers.

78
00:05:34,540 --> 00:05:34,820
OK.

79
00:05:36,980 --> 00:05:40,760
So if we look carefully, so what is the first number that I will print?

80
00:05:41,190 --> 00:05:43,600
OK, so let us revise what we have done below.

81
00:05:45,410 --> 00:05:49,670
So our problem was I have to read and and we have to print the falling button.

82
00:05:50,330 --> 00:05:56,240
First of all, we observed that if the value of honesty I am printing Titos, if the value of an is

83
00:05:56,240 --> 00:05:58,730
five, I am printing five rolls.

84
00:05:59,930 --> 00:06:06,260
So I need a loop and this loop children and times because we have to print and those.

85
00:06:06,710 --> 00:06:13,520
And with the help of DST, my local children and times and each time this loop is running, what I will

86
00:06:13,520 --> 00:06:15,160
do, I will print out all.

87
00:06:17,800 --> 00:06:19,150
And for printing it all.

88
00:06:19,220 --> 00:06:22,840
First I will print spaces martela many spaces I have to print.

89
00:06:23,290 --> 00:06:25,500
I have to print and minus eight spaces.

90
00:06:26,040 --> 00:06:27,820
Then I have to print numbers.

91
00:06:28,720 --> 00:06:31,660
And the numbers here are of two types, increasing numbers.

92
00:06:32,110 --> 00:06:37,810
And then I am having decreasing numbers, increasing numbers and then decreasing numbers.

93
00:06:38,380 --> 00:06:40,420
So how many using numbers I have to print.

94
00:06:40,810 --> 00:06:41,650
So I have to print.

95
00:06:41,860 --> 00:06:44,680
I increasing numbers and how we integrating them.

96
00:06:44,680 --> 00:06:45,490
But I have to print.

97
00:06:46,390 --> 00:06:49,060
I will print I minus one because in numbers.

98
00:06:50,900 --> 00:06:57,890
So if you look carefully, if the value of Y is for my first increasing number is four.

99
00:06:58,380 --> 00:06:59,240
That is a.

100
00:07:00,420 --> 00:07:08,190
If the value of fire is three, my first number is three, that is I if the value of fire is five.

101
00:07:08,520 --> 00:07:10,430
My first in using them is five.

102
00:07:10,540 --> 00:07:11,250
That is I.

103
00:07:13,070 --> 00:07:16,610
So I have to print I increasing numbers starting.

104
00:07:18,950 --> 00:07:19,370
From.

105
00:07:21,340 --> 00:07:21,610
I.

106
00:07:23,440 --> 00:07:30,160
And similarly, if the value of AI is three, what is my first book using number, my first or decreasing

107
00:07:30,160 --> 00:07:31,090
number is four.

108
00:07:31,350 --> 00:07:33,850
Is the way minus two.

109
00:07:35,070 --> 00:07:42,420
If the value of AI is to my foster, decreasing number is two, that is the way minus two.

110
00:07:43,690 --> 00:07:50,500
And similarly, if the value of fire is five, my first decreasing number is eight, which is the way

111
00:07:50,740 --> 00:07:51,760
minus two.

112
00:07:54,780 --> 00:07:57,450
So I have to print a minus one using them.

113
00:07:57,480 --> 00:07:59,100
But starting from.

114
00:08:03,770 --> 00:08:04,170
The way.

115
00:08:05,120 --> 00:08:06,680
Minus two.

116
00:08:08,100 --> 00:08:08,340
OK.

117
00:08:09,780 --> 00:08:12,270
So how will this Lupron and minus one times?

118
00:08:12,810 --> 00:08:14,430
So I will use a variable space.

119
00:08:14,890 --> 00:08:21,150
Initially, space equals one space less than articles to N minus A.

120
00:08:23,820 --> 00:08:25,470
Space equals.

121
00:08:26,550 --> 00:08:28,160
Space plus one.

122
00:08:28,560 --> 00:08:33,150
So with the help of these three mile loop will run and minus one times.

123
00:08:34,160 --> 00:08:38,170
And each time this loop is ending, what I will do, I will print space.

124
00:08:39,770 --> 00:08:43,310
Similarly, this loop will run eight times.

125
00:08:44,920 --> 00:08:46,800
So I will use a variable count.

126
00:08:47,260 --> 00:08:48,760
So initially counterclaims when.

127
00:08:49,850 --> 00:08:52,240
Count less than or close to a.

128
00:08:52,940 --> 00:08:57,590
And count equals count plus one.

129
00:08:57,890 --> 00:09:02,210
So with the help of these three, my loaf will run eight times.

130
00:09:02,750 --> 00:09:05,570
So this loop will run eight times.

131
00:09:06,890 --> 00:09:08,650
And each time this loop reasoning.

132
00:09:09,020 --> 00:09:09,770
What will I do?

133
00:09:09,830 --> 00:09:11,420
I will print a No.

134
00:09:14,370 --> 00:09:18,510
And then I will increase the value of number by one to number equals number.

135
00:09:19,620 --> 00:09:22,890
Plus one, because we have to print increasing numbers.

136
00:09:23,340 --> 00:09:25,230
And what is the first number that they will print?

137
00:09:25,570 --> 00:09:28,310
So the first man murdered I will print will be I.

138
00:09:28,900 --> 00:09:31,800
Okay, similarly, I have to print.

139
00:09:31,860 --> 00:09:33,390
I am minus one because in No.

140
00:09:35,710 --> 00:09:38,480
I will use a variable initially gone into question.

141
00:09:40,170 --> 00:09:48,810
Count less than I was to I minus one and count equals count plus one.

142
00:09:49,200 --> 00:09:54,120
So with the help of these three in my Leupp will then I minus one times.

143
00:09:55,200 --> 00:10:00,690
OK, so each time this loop is running, what I will do, I will print a number.

144
00:10:04,200 --> 00:10:06,540
And then I will decrease the value of number by one.

145
00:10:08,170 --> 00:10:12,220
So, no, it was number minus one because we have to print the closing numbers.

146
00:10:13,720 --> 00:10:16,090
And what will be the first number that I will print?

147
00:10:16,630 --> 00:10:20,740
So the first number that I will print will be the way minus two.

148
00:10:22,380 --> 00:10:22,600
OK.

149
00:10:26,910 --> 00:10:29,340
So in total, I will be using for Lupe's.

150
00:10:34,190 --> 00:10:41,970
So this is the loop that we run and times because I have to print Ando's, then I am having loop number

151
00:10:42,020 --> 00:10:42,290
one.

152
00:10:43,510 --> 00:10:45,790
So this loop will print spaces.

153
00:10:48,210 --> 00:10:50,230
Then I am having Lou Palumbo, too.

154
00:10:51,270 --> 00:10:54,000
So this loop will print increasing numbers.

155
00:10:57,270 --> 00:11:03,940
Then I am having lube number three and this loop will print the closing numbers.

156
00:11:05,630 --> 00:11:07,750
And now I have printed one in battle.

157
00:11:08,240 --> 00:11:08,870
What will I do?

158
00:11:08,990 --> 00:11:15,680
I will go to NextRadio, so print backslash and to go to next line or next RU.

159
00:11:16,120 --> 00:11:17,780
So I am using for loops.

160
00:11:19,410 --> 00:11:22,650
When is outer loop and other area in the loop?

161
00:11:23,040 --> 00:11:26,240
So one out the loop and t inner loop.

162
00:11:29,110 --> 00:11:30,800
OK, so let us right, this will look good.

163
00:11:35,170 --> 00:11:37,750
So if Dede and.

164
00:11:40,030 --> 00:11:42,040
I equis, when.

165
00:11:43,510 --> 00:11:48,400
While I less than ordered close to N do.

166
00:11:50,210 --> 00:11:51,590
So this is my outlook.

167
00:11:52,550 --> 00:11:53,750
So what will I do here?

168
00:11:53,810 --> 00:11:57,170
First of all, I will print spaces, space.

169
00:11:59,310 --> 00:12:01,760
Equals one way.

170
00:12:04,250 --> 00:12:06,820
Space is less than I was to.

171
00:12:07,100 --> 00:12:08,610
So how many spaces I have to print?

172
00:12:09,440 --> 00:12:11,650
I have to print and minus eight spaces.

173
00:12:12,850 --> 00:12:17,240
Do we're too late to print space?

174
00:12:20,580 --> 00:12:23,390
Space equals space.

175
00:12:23,730 --> 00:12:24,480
Plus, when.

176
00:12:25,760 --> 00:12:26,010
OK.

177
00:12:26,740 --> 00:12:28,210
Now, I have printed spitters.

178
00:12:28,450 --> 00:12:29,680
So what is the next step?

179
00:12:29,770 --> 00:12:31,930
I will Brint I increasing numbers.

180
00:12:33,340 --> 00:12:34,090
You can see here.

181
00:12:34,600 --> 00:12:38,390
I have to print I increasing numbers starting from a.

182
00:12:42,910 --> 00:12:48,800
No, initially equals two I and going this one.

183
00:12:49,780 --> 00:12:51,890
So how many is in the mess I have to print.

184
00:12:52,300 --> 00:12:54,930
So I have to print I increasing numbers.

185
00:12:55,540 --> 00:12:56,230
So while.

186
00:12:58,540 --> 00:13:01,360
Ground is less than I am close to.

187
00:13:01,400 --> 00:13:02,710
I don't.

188
00:13:04,230 --> 00:13:05,010
What do they do here?

189
00:13:05,190 --> 00:13:05,970
I will spend.

190
00:13:08,010 --> 00:13:08,520
No.

191
00:13:11,020 --> 00:13:19,390
No equals no plus one, because I have to print increasing numbers and count.

192
00:13:19,840 --> 00:13:20,380
It was.

193
00:13:21,290 --> 00:13:22,670
God bless.

194
00:13:22,970 --> 00:13:23,230
When?

195
00:13:24,510 --> 00:13:26,880
Okay, so I have branded increasing numbers.

196
00:13:27,330 --> 00:13:30,030
Now my next step is to print necklacing numbers.

197
00:13:31,320 --> 00:13:38,100
So I have to print I minus one, because in numbers starting from the way minus two.

198
00:13:44,280 --> 00:13:46,590
So Nam equals.

199
00:13:47,920 --> 00:13:53,280
The way minus two and count equals one.

200
00:13:55,810 --> 00:13:56,310
While.

201
00:13:57,720 --> 00:14:04,560
Count is less than or equal to a minus one because I have to print a minus one numbers.

202
00:14:06,230 --> 00:14:06,960
What would I do?

203
00:14:07,230 --> 00:14:09,450
I will print no.

204
00:14:11,290 --> 00:14:16,540
And then I will decrease the number by one because I have to print decreasing numbers.

205
00:14:19,210 --> 00:14:20,350
Count it, Gwynn's.

206
00:14:21,730 --> 00:14:23,110
Count plus one.

207
00:14:25,590 --> 00:14:27,370
Now, I have printed an entire issue.

208
00:14:27,960 --> 00:14:30,570
I have to go to next to do so print.

209
00:14:32,990 --> 00:14:33,560
Backslash.

210
00:14:34,300 --> 00:14:37,950
And here I am having I equals I plus one.

211
00:14:40,730 --> 00:14:44,090
And here I am, having made a dumb statement.

212
00:14:44,920 --> 00:14:48,340
OK, so this is my complete pseudocode.

213
00:14:49,570 --> 00:14:50,660
So let us revise again.

214
00:14:53,920 --> 00:14:57,760
So I have to read and and we have to bring the fulling by then.

215
00:14:59,000 --> 00:15:00,440
So the value of an Estie.

216
00:15:00,760 --> 00:15:03,280
I will print Titos if the value of minus five.

217
00:15:03,640 --> 00:15:05,110
I will print Faithful's.

218
00:15:05,650 --> 00:15:05,940
Okay.

219
00:15:06,160 --> 00:15:09,130
So I need a loop and this loop vildan and James.

220
00:15:10,840 --> 00:15:16,330
So here you can see so here I am, I being I equals when I left and I goes to N.

221
00:15:19,940 --> 00:15:22,100
So here I am having I equals one.

222
00:15:22,190 --> 00:15:22,630
Here I am.

223
00:15:22,850 --> 00:15:24,110
I left and goes to N.

224
00:15:24,650 --> 00:15:26,840
And here I am having this statement.

225
00:15:27,290 --> 00:15:29,180
So this loop will then end times.

226
00:15:29,490 --> 00:15:31,040
OK, so the first problem is Zoet.

227
00:15:34,870 --> 00:15:40,730
And now each time this loop is ending, I will print Adul so footprinting to.

228
00:15:41,940 --> 00:15:46,170
First, I need to print the spaces, how many spaces and minus ice bases.

229
00:15:46,570 --> 00:15:46,850
OK.

230
00:15:48,600 --> 00:15:51,830
So spaces equals one spaces less than there was two and minus eight.

231
00:15:51,930 --> 00:15:53,820
And spaces equals business plus one.

232
00:15:54,150 --> 00:16:00,900
So with the help of these three, this loop will run and minus eight times and each time this loop is

233
00:16:00,900 --> 00:16:01,230
ending.

234
00:16:01,320 --> 00:16:02,910
I am branding spaces.

235
00:16:03,950 --> 00:16:04,170
OK.

236
00:16:08,360 --> 00:16:13,430
Now I have to print I increasing numbers, okay, and starting from I.

237
00:16:13,880 --> 00:16:14,750
So I have to print.

238
00:16:14,780 --> 00:16:17,330
I think losing them was starting from a.

239
00:16:20,030 --> 00:16:26,400
So count equals one count less than close to a count, of course, count plus one.

240
00:16:26,460 --> 00:16:32,730
So with the help of these three, my love will run eight times and each time this loop is ending, I

241
00:16:32,740 --> 00:16:36,800
am printing a number and I am incrementing the value of number by one.

242
00:16:37,170 --> 00:16:38,580
And initially, my number is.

243
00:16:38,800 --> 00:16:41,330
I saw the first number and I will print will be a.

244
00:16:44,460 --> 00:16:46,770
Now I have to print the closing numbers.

245
00:16:46,830 --> 00:16:52,510
How many accusing them as a minus one, accusing them was starting from the way minus two.

246
00:16:54,400 --> 00:16:57,820
So count to close one count less than it was two, a minus one.

247
00:16:58,510 --> 00:17:00,160
And canticles count plus one.

248
00:17:00,610 --> 00:17:05,290
So with the help of these three, this loop will run I minus one times.

249
00:17:06,100 --> 00:17:12,180
And each time this loop is ending, I am printing an amber and I'm documenting the value of no by one

250
00:17:12,190 --> 00:17:18,070
because I have to print the closing number and the first number that I will print will be the way minus

251
00:17:18,490 --> 00:17:18,700
two.

252
00:17:19,570 --> 00:17:21,420
And now we have printed an entire row.

253
00:17:21,520 --> 00:17:22,240
What will I do?

254
00:17:22,750 --> 00:17:28,660
I will go to next plane and after printing and lose this loop will break.

255
00:17:28,810 --> 00:17:33,240
I will come out of this loop and it will hit written statements or written myths and.

256
00:17:33,870 --> 00:17:35,490
So after printing Ando's.

257
00:17:36,550 --> 00:17:39,560
It does create it will be executed and I will end my program.

258
00:17:43,260 --> 00:17:49,020
OK, so let's take an example to get a better idea how this little is looking, for example, into the

259
00:17:49,020 --> 00:17:56,340
value of fairness, do so virtually my output, my output should be one, two, three, two.

260
00:17:57,360 --> 00:18:00,870
OK, so let's see whether this sort of code is giving me the right output or not.

261
00:18:01,740 --> 00:18:02,210
So, dude.

262
00:18:02,280 --> 00:18:04,410
And then I equals one.

263
00:18:04,980 --> 00:18:06,900
So I equals one.

264
00:18:07,710 --> 00:18:10,900
Now check the condition is one less than I got to do.

265
00:18:10,960 --> 00:18:13,220
So the condition is to go inside the loop.

266
00:18:14,480 --> 00:18:15,440
Space equals one.

267
00:18:15,530 --> 00:18:17,180
OK, so a space.

268
00:18:18,700 --> 00:18:19,620
Equals one.

269
00:18:20,590 --> 00:18:23,620
No, Jack, the condition is one less than it was two and minus.

270
00:18:24,190 --> 00:18:25,690
OK, so what is the value of N minus?

271
00:18:26,800 --> 00:18:30,310
So N minus eight equals two, minus one, which is one.

272
00:18:30,850 --> 00:18:33,220
OK, so now, Jack, the condition is one less.

273
00:18:33,220 --> 00:18:37,470
The Noriko's to one through the condition is to go inside the loop print space.

274
00:18:38,140 --> 00:18:39,520
So I am writing my output here.

275
00:18:40,360 --> 00:18:40,540
OK.

276
00:18:41,080 --> 00:18:42,420
So I have to print space.

277
00:18:42,550 --> 00:18:42,800
OK.

278
00:18:44,210 --> 00:18:47,290
It gives her a little space by one to a new value of spaces to.

279
00:18:48,970 --> 00:18:50,280
Now watching the condition again.

280
00:18:51,510 --> 00:18:53,070
Is to less than ocus to one.

281
00:18:53,670 --> 00:18:54,900
The condition is false.

282
00:18:54,990 --> 00:18:55,830
You will reach here.

283
00:18:57,170 --> 00:18:57,980
No equals.

284
00:18:58,100 --> 00:19:03,410
I see no equals one count equals one.

285
00:19:03,500 --> 00:19:03,820
OK.

286
00:19:04,160 --> 00:19:06,890
So count equals one.

287
00:19:07,970 --> 00:19:11,550
I'll check the condition is, well, less than articles to win.

288
00:19:11,730 --> 00:19:12,840
So the condition is true.

289
00:19:12,960 --> 00:19:14,310
You will go inside the loop.

290
00:19:14,930 --> 00:19:15,510
Brenda No.

291
00:19:15,830 --> 00:19:16,200
OK.

292
00:19:17,780 --> 00:19:19,100
Is there enough number by one?

293
00:19:21,570 --> 00:19:23,190
It gives them a going to buy one.

294
00:19:26,120 --> 00:19:29,780
Check the condition again is to less than August two one.

295
00:19:30,020 --> 00:19:35,750
No, the condition is false because two is not less than articles to one.

296
00:19:35,810 --> 00:19:36,980
So my condition is false.

297
00:19:37,400 --> 00:19:40,160
I will come out of this loop and I will reach here.

298
00:19:41,150 --> 00:19:42,650
No, it goes to a minus two.

299
00:19:42,930 --> 00:19:46,840
OK, so a number equals the way.

300
00:19:46,940 --> 00:19:51,770
What is the value of a one minus two, which is zero.

301
00:19:52,170 --> 00:19:57,710
OK, guarantee close one count equals one.

302
00:19:58,880 --> 00:20:03,440
Now, check the condition of get first of all, what is the value of a minus on the value of eye witness

303
00:20:03,440 --> 00:20:05,540
on this one minus one, that is zero.

304
00:20:06,320 --> 00:20:09,860
Now, check the condition is one less than Agosta zero.

305
00:20:10,040 --> 00:20:11,240
No, the condition is false.

306
00:20:11,630 --> 00:20:13,820
One is not less than or equal to zero.

307
00:20:13,840 --> 00:20:14,800
The condition is false.

308
00:20:16,060 --> 00:20:17,530
You will not go inside this loop.

309
00:20:18,400 --> 00:20:19,480
You will likely come here.

310
00:20:20,570 --> 00:20:22,600
Backslash that does go to next lane.

311
00:20:22,660 --> 00:20:23,500
So I will reach you.

312
00:20:25,120 --> 00:20:26,860
I was a plus when.

313
00:20:28,140 --> 00:20:30,030
So the new Aleo fight is to.

314
00:20:32,180 --> 00:20:32,390
OK.

315
00:20:32,500 --> 00:20:33,610
Let me clear all this.

316
00:20:46,290 --> 00:20:51,490
OK, so in is there a little fire by went to the Newble, your fire is to say I'm writing here.

317
00:20:52,470 --> 00:20:57,020
I was to check the condition is to less than I was to do.

318
00:20:57,030 --> 00:20:59,060
So the condition is to go inside the loop.

319
00:21:00,730 --> 00:21:07,920
Now, what is really often minus a so and minus eight equals two minus two, which is zero logic.

320
00:21:08,150 --> 00:21:10,910
The condition is one less than Agosta zero.

321
00:21:11,000 --> 00:21:12,260
Nor the condition is false.

322
00:21:12,800 --> 00:21:15,250
You will not go inside this loop.

323
00:21:15,380 --> 00:21:16,400
You will likely come here.

324
00:21:17,210 --> 00:21:17,510
Okay.

325
00:21:17,870 --> 00:21:19,640
So you will not go inside this loop.

326
00:21:19,730 --> 00:21:21,080
You will likely come here.

327
00:21:21,510 --> 00:21:23,560
No, because I saw a number.

328
00:21:24,200 --> 00:21:25,550
It goes to.

329
00:21:26,680 --> 00:21:28,540
Counterclaims equation against So Count.

330
00:21:29,920 --> 00:21:30,970
Equals one.

331
00:21:32,270 --> 00:21:37,150
Jake, the condition is, well, less than it was to do so, the condition is to go inside the loop

332
00:21:37,210 --> 00:21:37,550
print.

333
00:21:37,790 --> 00:21:38,200
No.

334
00:21:38,510 --> 00:21:39,010
Where does they live?

335
00:21:39,050 --> 00:21:39,530
Number two.

336
00:21:39,560 --> 00:21:40,460
So I will print two.

337
00:21:41,970 --> 00:21:43,890
And give them a lesson number by went to a new value.

338
00:21:43,960 --> 00:21:44,860
Number is three.

339
00:21:45,370 --> 00:21:46,870
It gives a really off guard by when?

340
00:21:48,440 --> 00:21:54,050
Now, check the condition again is to list in August, tattoos with the condition is to go inside the

341
00:21:54,050 --> 00:21:55,600
loop current number.

342
00:21:55,770 --> 00:21:56,930
Where does the live number three?

343
00:21:56,990 --> 00:21:58,340
So I will print three.

344
00:21:58,890 --> 00:22:02,080
In case there are enough number by one to any well off number is full.

345
00:22:03,110 --> 00:22:03,760
And gives them enough.

346
00:22:03,760 --> 00:22:04,490
Can't buy one.

347
00:22:05,940 --> 00:22:06,600
This tree.

348
00:22:08,010 --> 00:22:13,380
Now, Jack, the condition again is still less than it was to do so is three less than already, close

349
00:22:13,380 --> 00:22:14,150
to two known?

350
00:22:14,160 --> 00:22:15,390
The condition is false.

351
00:22:15,870 --> 00:22:17,760
You will not go inside this loop.

352
00:22:17,970 --> 00:22:19,750
You will come here, OK?

353
00:22:20,120 --> 00:22:21,780
So, no, it goes to a minus two.

354
00:22:22,440 --> 00:22:24,600
So a number equals two.

355
00:22:24,660 --> 00:22:27,180
I do, though, if I do minus two.

356
00:22:27,780 --> 00:22:31,340
So number equals to count equals one.

357
00:22:31,510 --> 00:22:35,160
OK, so count equals one.

358
00:22:36,910 --> 00:22:39,350
Wild card in less than a year goes to a minus one.

359
00:22:39,690 --> 00:22:44,810
So what is the value of five minus one to minus one, which is one?

360
00:22:45,480 --> 00:22:47,920
OK, so now, Jack, the condition is one less.

361
00:22:47,990 --> 00:22:48,690
It goes to one.

362
00:22:48,900 --> 00:22:51,890
The condition is to go inside the loop, print the number.

363
00:22:52,170 --> 00:22:53,840
What is the role of number two?

364
00:22:54,330 --> 00:22:55,560
So I will print two here.

365
00:22:57,040 --> 00:22:58,590
They gave their ayliffe number by one.

366
00:22:59,560 --> 00:23:03,450
So number is one, it gives them I love can't buy one.

367
00:23:05,190 --> 00:23:13,690
So neurally of counties to now check the condition again is to less than Agosta, one is to less than

368
00:23:13,720 --> 00:23:13,930
oil.

369
00:23:13,930 --> 00:23:14,590
Close to one.

370
00:23:14,830 --> 00:23:15,280
No.

371
00:23:15,760 --> 00:23:17,160
The condition is for it.

372
00:23:17,350 --> 00:23:19,980
You will not go inside this loop and you will reach here.

373
00:23:21,140 --> 00:23:21,390
OK.

374
00:23:21,780 --> 00:23:22,590
Go to next lane.

375
00:23:22,680 --> 00:23:23,520
So I will reach here.

376
00:23:25,460 --> 00:23:29,060
And give them a little fire by events when you when your fly is three.

377
00:23:30,590 --> 00:23:32,430
And now you will check the condition again.

378
00:23:35,700 --> 00:23:39,930
Is three less than our to do is to less than I was to do?

379
00:23:40,010 --> 00:23:40,400
No.

380
00:23:41,130 --> 00:23:45,060
So you will not go inside the loop and you will reach here.

381
00:23:46,420 --> 00:23:51,810
Here I am, having written statement like this and doing a program, and this is my output.

382
00:23:53,460 --> 00:23:55,590
Which is hundred percent correct.

383
00:23:56,400 --> 00:23:58,020
So I hope you understood this problem.

384
00:23:58,770 --> 00:24:01,130
This is the toughest problem we have solved till now.

385
00:24:01,590 --> 00:24:06,120
And my suggestion to you is take out your pen and paper, try to understand.

386
00:24:06,150 --> 00:24:10,830
Problem big the problem in two different parts and similar to all those parts.

387
00:24:11,370 --> 00:24:13,290
Try to write to the code on your own.

388
00:24:13,710 --> 00:24:19,230
Take different values often and run your pseudo code and see whether years or record is right or wrong.

389
00:24:20,260 --> 00:24:22,450
OK, so I hope you understood this problem.

390
00:24:22,810 --> 00:24:25,590
So if you have any doubt in any equation that we'll go.

391
00:24:25,900 --> 00:24:26,270
Below.

392
00:24:26,680 --> 00:24:27,640
Feel free to ask.

393
00:24:29,260 --> 00:24:34,360
So before turning this class, I want to discuss one more thing that I should have discussed before.

394
00:24:35,350 --> 00:24:37,130
So what is pseudocode?

395
00:24:39,610 --> 00:24:47,320
What is sort of called so subtle means false and rare disorder called sort of God is not an actual code,

396
00:24:47,410 --> 00:24:51,820
but it is very similar to an actual code that will be writing in C++.

397
00:24:52,870 --> 00:24:54,970
Finally, congratulations.

398
00:24:57,250 --> 00:25:01,090
On finishing all the flight problems, you have done a good job.

399
00:25:17,650 --> 00:25:20,260
So in the next class, we will learn about numbly system.

400
00:25:22,830 --> 00:25:24,390
Next class will be focused on.

401
00:25:24,660 --> 00:25:25,430
No system.

402
00:25:26,880 --> 00:25:31,440
And in my system, our prime focus will be on by binary.

403
00:25:32,980 --> 00:25:34,660
And Investment Lummus system.

404
00:25:36,930 --> 00:25:38,820
So I hope you enjoyed today's tutorial.

405
00:25:39,210 --> 00:25:40,290
I will see you in the next one.

406
00:25:40,450 --> 00:25:41,910
Till then, enjoy C++.
