1
00:00:01,570 --> 00:00:02,230
Hi everyone.

2
00:00:02,220 --> 00:00:09,410
So in this lesson we are going to learn what our two dimensional at is so consider for example you want

3
00:00:09,410 --> 00:00:11,240
to implement board a game.

4
00:00:11,240 --> 00:00:21,380
So let us consider that you want to implement our tic tac toe game so intact tactile we have a basically

5
00:00:21,380 --> 00:00:28,030
two dimensional Larry and basically direct to you rules and three columns so this matrix has a dimension

6
00:00:28,030 --> 00:00:31,870
of three cores three now with the current knowledge that we have.

7
00:00:31,880 --> 00:00:35,390
How can we store detectable.

8
00:00:35,460 --> 00:00:40,050
So basically the first option is with the use of three one dimensional Eddie.

9
00:00:40,140 --> 00:00:41,860
So I will create three areas.

10
00:00:41,880 --> 00:00:44,310
So even if you do and 80

11
00:00:47,170 --> 00:00:52,530
so even will correspond to the first rule you two is going to correspond for the second row and A3 is

12
00:00:52,540 --> 00:00:55,060
for the third row of detectors.

13
00:00:55,060 --> 00:01:00,660
So this even restore the data president in the first row you to restore the data president in the second

14
00:01:00,660 --> 00:01:04,200
row and a previous order data present in the third row.

15
00:01:04,210 --> 00:01:08,110
So for example if you do something here if are going to store something here.

16
00:01:08,200 --> 00:01:10,430
Then that data will be stored at this point.

17
00:01:10,570 --> 00:01:12,790
If you want to store something at this location.

18
00:01:12,880 --> 00:01:16,590
So you have to go to edit 3 and add zero index.

19
00:01:16,600 --> 00:01:17,700
You will solve the data.

20
00:01:17,740 --> 00:01:22,460
So this is the first option but this option is not very good.

21
00:01:22,460 --> 00:01:23,510
Why this is not very good.

22
00:01:23,510 --> 00:01:28,580
Because suppose you want to implement a chess game so inches you have it cross it.

23
00:01:28,640 --> 00:01:31,980
So basically you have to take it one dimensional Eddie.

24
00:01:32,090 --> 00:01:34,180
So even do it.

25
00:01:34,250 --> 00:01:39,750
So I have to take it one be Eddie one dimensional Eddie.

26
00:01:40,010 --> 00:01:44,210
So this first option is not a very good option.

27
00:01:44,220 --> 00:01:47,140
Now the second option for implementing tic tac toe.

28
00:01:47,280 --> 00:01:47,940
What can I do.

29
00:01:47,940 --> 00:01:50,490
So in total I have nine cents.

30
00:01:50,640 --> 00:01:53,000
So what I will do I will create a one degree.

31
00:01:53,610 --> 00:01:56,220
And in this one day I will basically have.

32
00:01:56,430 --> 00:01:58,320
So this one day it will be of size nine.

33
00:01:58,350 --> 00:02:00,070
So the first and next will be zero.

34
00:02:00,210 --> 00:02:07,170
And the last index is going to be eight now for example if you want to insert something at this location.

35
00:02:07,170 --> 00:02:12,170
So if will do the indexing so 0 1 Do you remember the indexing always starts from zero.

36
00:02:12,180 --> 00:02:13,700
So this is 0 1 2.

37
00:02:13,710 --> 00:02:16,700
Now what I want to do I want to store something at this location.

38
00:02:16,800 --> 00:02:18,270
So it's the rule number is two.

39
00:02:18,270 --> 00:02:20,790
And it indexes one.

40
00:02:21,030 --> 00:02:27,540
So I want to store something at this location to code 11 and what this location will be in this area.

41
00:02:27,540 --> 00:02:32,540
So basically if you count so one two three four five six seven and eight.

42
00:02:32,580 --> 00:02:39,490
So its location will be seven so you will store whatever you are going to store at this location that

43
00:02:39,490 --> 00:02:43,310
will be stored at the nexus 7 corresponding to this one that mission at.

44
00:02:43,330 --> 00:02:48,180
So this is our second option or it off implementing the tic tac toe again.

45
00:02:48,190 --> 00:02:51,120
So the problem with this approach is basically you have to calculate.

46
00:02:51,130 --> 00:02:59,340
You have to do some calculation to find out the index in the 80 but the third option of implementing

47
00:02:59,340 --> 00:03:05,230
tic tac toe is with the help of two damaged letters.

48
00:03:05,240 --> 00:03:07,840
So now let's see what are two damage salaries.

49
00:03:07,850 --> 00:03:11,950
So as the name suggests there will be two dimensions just like three across three.

50
00:03:11,960 --> 00:03:15,290
So basically there are two dimensions in chess.

51
00:03:15,290 --> 00:03:18,140
We have two dimensions eight closet.

52
00:03:18,140 --> 00:03:23,590
So now let's see how we will create our to damage Hillary.

53
00:03:23,640 --> 00:03:29,040
So for example if you want to create an idea what you will write you will write it deja if you want

54
00:03:29,040 --> 00:03:34,440
to create a different teacher then the name of the array and then let's say I want lent five.

55
00:03:34,470 --> 00:03:40,200
So what will happen you will get an array the first index is going to be zero and the last index is

56
00:03:40,200 --> 00:03:41,620
going to be.

57
00:03:41,880 --> 00:03:44,840
Now if you want to create a tool that that it would do well right.

58
00:03:44,850 --> 00:03:51,600
So I want to create the Mitchell that often do just so I will give the data type then the name of the

59
00:03:51,600 --> 00:03:51,870
area.

60
00:03:51,900 --> 00:03:54,910
So I want to be led to the name of that is B.

61
00:03:54,930 --> 00:03:56,520
Now you have to give two things.

62
00:03:56,520 --> 00:03:58,790
So here the ad is a one dimensional.

63
00:03:58,860 --> 00:04:00,500
So you just have to give the land.

64
00:04:01,140 --> 00:04:03,590
But the two that Mitchell at is.

65
00:04:03,660 --> 00:04:08,370
So there are two damage and first I have rules and I have columns.

66
00:04:08,490 --> 00:04:13,900
So what I will do I will write like this one box and second box.

67
00:04:14,020 --> 00:04:20,120
So this first box will contain how many tools and the second box will contain how many columns.

68
00:04:20,850 --> 00:04:24,980
So for example if I give 3Com a Ford 3 and 4.

69
00:04:25,160 --> 00:04:27,430
And so what really we might do these metrics.

70
00:04:27,490 --> 00:04:31,820
So I will have three rows and I will have four columns.

71
00:04:31,840 --> 00:04:38,240
So this is the number of rows so Tito's so these are the tables and I want four columns.

72
00:04:38,280 --> 00:04:39,610
So this is the first column.

73
00:04:39,760 --> 00:04:45,580
The second column third and fourth column and we know the indexing in the IRS starts from zero.

74
00:04:45,580 --> 00:04:53,140
So similarly the indexing will start some 0 so the 0 1 2 3 I have four columns and 0 1 2.

75
00:04:53,230 --> 00:04:55,630
So I have three rules.

76
00:04:55,710 --> 00:04:59,910
So what is the last index last year nixes basically two commentary.

77
00:04:59,910 --> 00:05:04,590
What is the first index so Foster indexes is a zero comma zero.

78
00:05:04,670 --> 00:05:08,750
So now let's say if you want to take input.

79
00:05:09,570 --> 00:05:11,070
So how can you take input.

80
00:05:11,520 --> 00:05:16,600
So in every if you've undertaken.

81
00:05:16,720 --> 00:05:17,860
So what we have to do.

82
00:05:17,890 --> 00:05:21,130
I will write how many elements you want to insert.

83
00:05:21,130 --> 00:05:27,280
Then I will take the number of elements and then basically you have to use a for loop starting from

84
00:05:27,300 --> 00:05:29,240
zero and I list in it.

85
00:05:29,290 --> 00:05:30,180
And I plus plus.

86
00:05:30,190 --> 00:05:32,340
And then you will do something like this.

87
00:05:32,610 --> 00:05:35,320
Each if I use the name of the area.

88
00:05:35,830 --> 00:05:39,120
So for taking the input from the user we have to do this thing.

89
00:05:39,160 --> 00:05:45,100
Now let's see how we can take input in beauty metrics into their machinery.

90
00:05:45,310 --> 00:05:46,230
So let's see.

91
00:05:46,270 --> 00:05:48,840
So there are two ways of taking input.

92
00:05:48,880 --> 00:05:50,200
So what is the first option.

93
00:05:50,200 --> 00:05:57,910
So the first option is basically take input always and the second option is basically take input column

94
00:05:57,950 --> 00:05:59,270
wise.

95
00:05:59,570 --> 00:06:01,030
So what is the meaning of railways.

96
00:06:01,250 --> 00:06:08,430
So railways is very common and we will use this only so railways means taken but for the zero total

97
00:06:08,760 --> 00:06:13,600
then take input for the first row then they can put for the second to first of all I have to do.

98
00:06:13,620 --> 00:06:15,910
I will take how many rules and how many columns.

99
00:06:16,020 --> 00:06:17,220
So for these two.

100
00:06:17,250 --> 00:06:21,390
The first step is going to be same you will create a truly matrix.

101
00:06:21,420 --> 00:06:26,760
So let's say number of rules are handed number of columns that are also a hundred then you will take

102
00:06:26,760 --> 00:06:29,280
two variables four rows and columns.

103
00:06:29,280 --> 00:06:35,640
So let's call them a man and then you will take how many rows and it will take how many columns.

104
00:06:35,640 --> 00:06:41,360
So here M signifies rules and is basically the number of columns.

105
00:06:41,360 --> 00:06:43,900
So the first step is going to be very same.

106
00:06:43,910 --> 00:06:50,150
Just like we used to take and hit here we take two variables number of frozen number of columns.

107
00:06:50,240 --> 00:06:55,040
Now the defense will come that you are going to take in rural ways or column wise.

108
00:06:56,150 --> 00:07:01,350
So let's say if the valley of M is let's say 3 and and is 2.

109
00:07:01,400 --> 00:07:03,420
So basically what do list situation.

110
00:07:03,470 --> 00:07:10,790
So I'm going to have clear rules and only two columns so please rows and two columns so this is a situation.

111
00:07:10,790 --> 00:07:14,430
This is 0 1 2 and this is 0 and 1.

112
00:07:14,430 --> 00:07:22,560
Now let's talk about railways input so if you want to take in brutal ways let's take input for the name

113
00:07:22,560 --> 00:07:23,200
of the arrays.

114
00:07:23,220 --> 00:07:24,750
Name of the to the arrays B.

115
00:07:24,780 --> 00:07:31,790
So first you will take then put 4 0 0 you will write seen 0 0.

116
00:07:31,790 --> 00:07:40,290
Then you will write 0 1 then you will write 1 0 so this is for the first row.

117
00:07:40,290 --> 00:07:41,480
Cholesterol has been over.

118
00:07:41,520 --> 00:07:46,370
Now taking input for the second to an index is 1.

119
00:07:46,390 --> 00:07:52,560
So since the first column this is the second column then so then I will take the input for this and

120
00:07:53,190 --> 00:07:56,170
now take the input for the third row.

121
00:07:56,730 --> 00:07:57,610
So you will write.

122
00:07:57,630 --> 00:08:02,940
So this index is two commas 0 so to zero and this one is actually 2 1.

123
00:08:03,270 --> 00:08:13,560
So you will write to 1 and again seen.

124
00:08:13,650 --> 00:08:17,660
So this is taking input rule wise I am thinking and put the weights.

125
00:08:17,670 --> 00:08:24,160
Similarly you can do the opposite if you want to take and put column ways where you can do first fill.

126
00:08:24,340 --> 00:08:28,400
First take the input for the cell then take the input for this cell.

127
00:08:28,450 --> 00:08:31,970
So column wise is very similar to that always.

128
00:08:31,990 --> 00:08:37,960
So for now let us concentrate on the ways because everyone uses revise revise is more popular.

129
00:08:38,800 --> 00:08:43,450
So if you want taken But Roy's what quote We have to write.

130
00:08:43,510 --> 00:08:47,710
So if you can see what we are doing here.

131
00:08:47,700 --> 00:08:49,220
So I need two loops.

132
00:08:49,310 --> 00:08:50,820
I'm going to take in three ways.

133
00:08:50,820 --> 00:08:58,210
So I need to loop so one loop for hydrating over the rules and second loop for iterating over the columns.

134
00:08:58,350 --> 00:08:59,150
Simple.

135
00:08:59,150 --> 00:09:00,180
I am repeating myself.

136
00:09:00,180 --> 00:09:07,590
I want to take input railways so I need to loop one loop related or what the routes and one loop related

137
00:09:07,620 --> 00:09:09,000
or what the columns.

138
00:09:09,000 --> 00:09:16,860
Simple and what we have to do so for each row for each row I have to take input for all the columns.

139
00:09:16,960 --> 00:09:19,930
Similarly for the second row I will take input for all the columns.

140
00:09:19,930 --> 00:09:23,850
Similarly for the third row I will take input for the third column for the fourth row.

141
00:09:23,860 --> 00:09:26,710
I will take input for the fourth column to two loops will be there.

142
00:09:27,430 --> 00:09:30,420
So the outermost loop will either rate or what the rules.

143
00:09:30,550 --> 00:09:40,090
So let's say I equals zero number of rules are m so I listed them and I plus plus so this is the loop

144
00:09:40,180 --> 00:09:44,310
for trading or whether it was normal for each.

145
00:09:44,580 --> 00:09:46,560
I have to I read all the columns.

146
00:09:46,930 --> 00:09:49,320
So one loop inside this bigger loop.

147
00:09:49,330 --> 00:09:51,420
So this is for real.

148
00:09:51,430 --> 00:09:58,330
So this loop is going to migrate over the rules and we know that for each all I have to take the input

149
00:09:58,330 --> 00:09:59,270
for all the columns.

150
00:09:59,320 --> 00:10:03,290
So let's take a variable j so J quizzical how many columns out there.

151
00:10:03,310 --> 00:10:08,510
So there are n columns to g list and N G plus plus.

152
00:10:08,620 --> 00:10:14,620
And again this index is very similar syntax is very simple C in the name of that is B.

153
00:10:14,620 --> 00:10:23,560
And I will write I yet rule and git column simple yet rule.

154
00:10:23,700 --> 00:10:28,120
I use the rule you can see I used the rule and g at column so g is the column.

155
00:10:28,200 --> 00:10:32,330
So this is the way I will take input from the user in that way.

156
00:10:32,340 --> 00:10:35,170
I used to take input like this I equals zero.

157
00:10:35,190 --> 00:10:46,760
I left an N A plus plus and I used to write C in e of I so the idea is very similar here.

158
00:10:46,770 --> 00:10:53,280
I was just I over the area because the area was one dimensional but here we have two dimensions.

159
00:10:53,280 --> 00:10:57,100
Since we have two dimension then it is obvious that we need two loops.

160
00:10:57,150 --> 00:11:02,420
So this is the outer loop and this one is the inner loop again very simple first we have to get rid

161
00:11:02,420 --> 00:11:03,120
of what the rules.

162
00:11:03,120 --> 00:11:11,470
And for each rule I have to enter the order column because I'm taking input railways column.

163
00:11:11,500 --> 00:11:12,100
What will happen.

164
00:11:12,100 --> 00:11:16,520
So this will become outer loop and this will become inner loop.

165
00:11:16,630 --> 00:11:19,320
Just the opposite so.

166
00:11:19,350 --> 00:11:28,600
Now let us write the code and let's see how to create a three Matrix so let us create a two the matrix.

167
00:11:29,820 --> 00:11:37,880
So I do two dimensional Larry let's say the name of that is e the number of those hundred and let's

168
00:11:37,880 --> 00:11:45,580
say the number of columns that hundred now what they have to lose for taking the input from the user.

169
00:11:45,860 --> 00:11:49,200
I need to take how many rules are and how many columns.

170
00:11:49,500 --> 00:11:54,750
So give me how many rows and give me how many columns.

171
00:11:54,940 --> 00:11:57,120
Now I am taking in vertical ways.

172
00:11:57,130 --> 00:11:58,330
So I need one loop.

173
00:11:58,360 --> 00:11:59,560
Do I know what that was.

174
00:12:00,010 --> 00:12:06,610
So I am I iterating over the rows and now I need one loop for iterating over the columns.

175
00:12:06,610 --> 00:12:09,670
So for each and all I have to either do the column so I equals.

176
00:12:09,910 --> 00:12:18,210
So we have to take another variable so Jake will see zero g list and n and G plus plus and then I will

177
00:12:18,210 --> 00:12:23,840
take seeing it off I I get through and G column.

178
00:12:23,840 --> 00:12:28,130
So this code is exactly the same as we discussed here.

179
00:12:28,350 --> 00:12:29,960
Exactly same code.

180
00:12:29,970 --> 00:12:32,630
So what I'm doing it I am I dating order.

181
00:12:32,700 --> 00:12:35,700
And for each rule I am my dating order column.

182
00:12:35,700 --> 00:12:42,740
Then take the input I get through and g at column so let's try to run our program and let's see everything

183
00:12:42,740 --> 00:12:44,030
is working fine or not.

184
00:12:47,490 --> 00:12:49,840
So first I have to give the value of I mean.

185
00:12:49,860 --> 00:12:55,160
So let's say I want two rows and columns.

186
00:12:55,160 --> 00:12:56,830
Now it is waiting for my input.

187
00:12:56,830 --> 00:13:00,200
So how many elements I have to give or two in two three to cross three.

188
00:13:00,200 --> 00:13:02,260
So I have to give six elements.

189
00:13:02,390 --> 00:13:08,000
So let's say the elements are one two three four five and six and press enter.

190
00:13:08,000 --> 00:13:09,890
So basically I have a code is working fine.

191
00:13:09,890 --> 00:13:12,620
Our code is properly taking our input.

192
00:13:12,620 --> 00:13:17,000
Now for this for this input what will be our metrics.

193
00:13:17,060 --> 00:13:25,560
So our metrics is going to be very simple so you give the value of so you give m equals two and you

194
00:13:25,560 --> 00:13:28,250
give any quiz three and then you give six entries.

195
00:13:28,380 --> 00:13:33,080
So one two three four five six so if you will draw the matrix it will draw due to their mission Larry

196
00:13:33,570 --> 00:13:34,620
you need tools.

197
00:13:34,680 --> 00:13:37,170
So tools and you need three columns.

198
00:13:37,170 --> 00:13:43,740
So three columns and then you give six entries one two three four five and six.

199
00:13:43,890 --> 00:13:46,440
This is to include three metrics.

200
00:13:46,440 --> 00:13:49,770
This is 0 1 and 2 this is 0 and 1.

201
00:13:49,770 --> 00:13:51,330
So this is the input.

202
00:13:51,330 --> 00:13:53,860
Now let us try to print this metrics.

203
00:13:54,000 --> 00:14:00,170
So I want to print this metrics and I want to see how many metrics look like.

204
00:14:00,200 --> 00:14:01,850
So again we have two option.

205
00:14:01,850 --> 00:14:04,520
So first is to always print the metrics.

206
00:14:04,520 --> 00:14:05,830
So print the first rule.

207
00:14:05,840 --> 00:14:08,060
It will print the first rule 1 2 3.

208
00:14:08,060 --> 00:14:14,260
Now print the second doing 2 4 5 6 and the second option is let's print the column.

209
00:14:14,300 --> 00:14:15,950
Just like taking input.

210
00:14:16,100 --> 00:14:21,860
We can also print column bytes for example print the first column so it will be 1 4.

211
00:14:22,250 --> 00:14:25,810
Now print the second column so it will be 2 5.

212
00:14:25,820 --> 00:14:28,900
Now print the third column so it will be 3 6.

213
00:14:29,090 --> 00:14:33,480
So let's print otherwise and then we will also print the Columbine.

214
00:14:34,190 --> 00:14:41,270
So for printing it always if I want to print ways how will I print again.

215
00:14:41,280 --> 00:14:42,820
Just like taking input.

216
00:14:42,840 --> 00:14:45,490
Where do we look we will need two loops.

217
00:14:45,510 --> 00:14:52,230
What I want to do so for each row for each row I will I to the weather column and I will print the content.

218
00:14:52,800 --> 00:14:57,270
Similarly for the next row I related order column and I will print the content.

219
00:14:57,270 --> 00:14:58,300
So I need two loops.

220
00:14:58,830 --> 00:15:04,350
So the first loop is going to a trade or whether those two equals you do a less than M and A plus plus

221
00:15:04,710 --> 00:15:07,880
and for each row what we have to do we have to print the content.

222
00:15:07,870 --> 00:15:11,710
So for printing the content I have to I trade over the columns.

223
00:15:11,730 --> 00:15:19,500
So j equals zero g less than N N G plus plus and print the content to see out the name that is B I want

224
00:15:19,500 --> 00:15:23,550
to print I utero and g at column now after printing that all.

225
00:15:23,570 --> 00:15:28,750
So after printing the rule after printing the all I have to go to the next year.

226
00:15:28,800 --> 00:15:34,520
So for going to the next row I will write C out and line simple.

227
00:15:34,620 --> 00:15:43,340
So let us Sprint our metrics through ways so this the old line is basically for going to the next level.

228
00:15:43,440 --> 00:15:44,120
Simple.

229
00:15:44,280 --> 00:15:49,290
So we will give this input and let us sprint the roadways.

230
00:15:49,420 --> 00:15:50,230
So let's see

231
00:15:53,600 --> 00:15:54,770
what printing railways.

232
00:15:54,860 --> 00:15:56,030
Let me write here.

233
00:15:56,060 --> 00:16:05,000
I am printing railways and this is also railways so we can just copy the code copy the code and pasted

234
00:16:05,000 --> 00:16:06,180
here.

235
00:16:06,260 --> 00:16:10,890
So what we are doing instead of seeing what I will write I will write C out MySQL.

236
00:16:10,910 --> 00:16:12,930
We are printing the content.

237
00:16:13,040 --> 00:16:14,970
And after printing window.

238
00:16:15,270 --> 00:16:19,790
So for going to the next rule you will write C out and line and that's all.

239
00:16:19,790 --> 00:16:28,060
So this is the railway sprint so I have basically two rows and columns and I have to give six elements.

240
00:16:28,090 --> 00:16:32,250
So the elements are one two three four five and six.

241
00:16:32,440 --> 00:16:34,060
And this is so okay.

242
00:16:34,120 --> 00:16:35,590
So I didn't give the space.

243
00:16:35,590 --> 00:16:37,670
So that's why they are printing.

244
00:16:37,820 --> 00:16:46,900
That's why that's why my output is veered so let's give the space so I am giving spaces between the

245
00:16:46,900 --> 00:16:47,320
elements.

246
00:16:47,320 --> 00:16:53,000
Now output will be incorrectly two rows three columns.

247
00:16:53,030 --> 00:16:57,520
Now to give six elements a one two three four five and six.

248
00:16:57,590 --> 00:17:00,930
So this is the content of the two dimensional area railways.

249
00:17:00,950 --> 00:17:02,540
One two three and four five six.

250
00:17:02,630 --> 00:17:06,400
You can see one two three and four five six.

251
00:17:06,650 --> 00:17:11,370
So I will call this printing railways output in the correct manner.

252
00:17:11,380 --> 00:17:19,780
Now let us try to print column wise so if you want to print columns What do you have to do.

253
00:17:19,780 --> 00:17:21,370
Again very simple.

254
00:17:21,400 --> 00:17:22,410
What do we do.

255
00:17:22,510 --> 00:17:28,300
So for each column I have to trade or whether it was just we will do the opposite.

256
00:17:29,350 --> 00:17:39,090
What I am saying so what was it always so it always says I try to weather rules.

257
00:17:39,230 --> 00:17:44,730
And for each it'll printed the column what column by says

258
00:17:47,530 --> 00:17:49,530
you a trade or weather column.

259
00:17:49,810 --> 00:17:53,890
And for each column you will print that all simple.

260
00:17:54,190 --> 00:17:56,470
So basically what will be our record.

261
00:17:56,530 --> 00:17:58,550
So our code will look like this.

262
00:17:58,660 --> 00:18:01,990
First we have to trade all the columns.

263
00:18:02,140 --> 00:18:07,970
So for right trading with a column so I so I equals zero.

264
00:18:08,070 --> 00:18:13,000
I list and a number of columns that N and a plus plus.

265
00:18:13,030 --> 00:18:15,910
So I am migrating over the columns.

266
00:18:15,910 --> 00:18:26,460
And for each column I have a total with the rules so remember M is rules and is the number of columns.

267
00:18:26,860 --> 00:18:30,550
So you can see here rows and columns.

268
00:18:30,550 --> 00:18:32,590
Similarly this is columns and

269
00:18:35,480 --> 00:18:37,710
so I am migrating over these rules.

270
00:18:37,710 --> 00:18:45,350
Now for each column we have to trade or whether it was so j equals zero g list an M C++.

271
00:18:45,350 --> 00:18:52,330
I will simply write C out the name of the edit is B I want to print a yet column.

272
00:18:52,580 --> 00:18:58,430
So if you want to print diet column so I will come here and Deer Trail.

273
00:18:58,550 --> 00:19:03,000
So here it was A.G. But here what is I.

274
00:19:03,030 --> 00:19:04,580
So this is I.

275
00:19:04,860 --> 00:19:06,470
And this is G.

276
00:19:06,900 --> 00:19:10,080
So Jay's actually derail and 1st index so.

277
00:19:10,140 --> 00:19:17,870
So this one this is actually it'll and this is column so here you have two right.

278
00:19:17,890 --> 00:19:21,290
J first and then I.

279
00:19:21,610 --> 00:19:28,720
Because Jay's rule i e column and after printing one column for going to the next column you will write

280
00:19:28,760 --> 00:19:31,660
a c out and line and that's all.

281
00:19:31,720 --> 00:19:35,110
So this is printing column weights.

282
00:19:35,240 --> 00:19:37,670
This is how we will print column wise.

283
00:19:38,150 --> 00:19:38,910
Simple.

284
00:19:38,960 --> 00:19:40,130
So what should be our output.

285
00:19:40,130 --> 00:19:43,950
So our approach would be 1 4 2 5 and then 3 6.

286
00:19:43,970 --> 00:19:48,350
So let me write this called.

287
00:19:48,560 --> 00:19:55,640
So this is the way sprint now I want to print column wise so let's print

288
00:19:58,540 --> 00:20:00,880
column by is so approach is very simple.

289
00:20:00,890 --> 00:20:03,580
We have to write trade with the columns so i equals zero.

290
00:20:03,590 --> 00:20:07,190
I less than anyplace else I am taking over the columns.

291
00:20:07,190 --> 00:20:11,540
And for each column I have to iterate over that it was so j equals zero.

292
00:20:11,630 --> 00:20:17,930
Similarly G less than M.G. plus plus and then I want to print.

293
00:20:18,020 --> 00:20:20,050
So the name of the ad is B.

294
00:20:20,290 --> 00:20:21,620
I'll get a name that is a.

295
00:20:21,630 --> 00:20:31,650
So I want to print my dear true and I get column and we will give spaces between the elements and after

296
00:20:31,650 --> 00:20:35,600
printing the one column for going to the next column.

297
00:20:35,710 --> 00:20:36,300
Right.

298
00:20:36,330 --> 00:20:37,680
She out and Lane.

299
00:20:37,800 --> 00:20:38,580
So this is all.

300
00:20:38,700 --> 00:20:39,900
So this is column wise.

301
00:20:39,900 --> 00:20:40,530
Now let's see

302
00:20:46,890 --> 00:20:53,520
number of rows are two number of columns are three and elements are 1 2 3 4 5 and 6.

303
00:20:53,580 --> 00:20:54,870
So this is it always print.

304
00:20:55,380 --> 00:21:03,350
We have seen already and this is column I sprint 1 4 2 5 and 2 6

305
00:21:08,120 --> 00:21:09,010
so you can compare

306
00:21:16,850 --> 00:21:17,930
so you can compare both.

307
00:21:17,960 --> 00:21:28,360
So this is always just like this one and this is column bytes 1 4 2 5 and 3 6 1 4 2 5 and 6.

308
00:21:28,360 --> 00:21:29,740
So our goal is working.

309
00:21:29,740 --> 00:21:36,500
Hundred percent correct.

310
00:21:36,530 --> 00:21:37,820
So this is the complete core

311
00:21:41,710 --> 00:21:42,760
now in the next redo.

312
00:21:42,780 --> 00:21:45,570
We will discuss how we can initialize our duty.

313
00:21:45,660 --> 00:21:46,620
I will see you there.

314
00:21:46,640 --> 00:21:47,000
Bye bye.
