1
00:00:01,140 --> 00:00:01,980
All right.

2
00:00:02,190 --> 00:00:06,530
Let me show you how I'm going to solve this particular challenge.

3
00:00:06,540 --> 00:00:08,640
So let's get rocking.

4
00:00:09,120 --> 00:00:14,520
Well, so let's read the question again and deduce what we are supposed to do.

5
00:00:15,240 --> 00:00:18,210
He says that create an array of numbers.

6
00:00:18,210 --> 00:00:20,580
Meaning it can be anything.

7
00:00:20,610 --> 00:00:22,140
It can be anything.

8
00:00:23,070 --> 00:00:25,700
It can be a number of students or whatever.

9
00:00:25,710 --> 00:00:29,130
So the first point is, let me create my array.

10
00:00:29,260 --> 00:00:31,110
The variable name can be anything.

11
00:00:31,140 --> 00:00:35,460
I'll call this one as How do I call it?

12
00:00:35,460 --> 00:00:47,610
Let me say amount of money I have is equal to, I can say 9400 to 5 seven.

13
00:00:47,850 --> 00:00:49,800
The choice is mine.

14
00:00:50,130 --> 00:00:51,540
So I got this one.

15
00:00:51,570 --> 00:00:55,110
The next point is that creates array.

16
00:00:55,590 --> 00:00:58,500
They're going to print out the numbers in the array.

17
00:00:58,500 --> 00:01:04,769
So in accordance to I want to see 9401, five and seven.

18
00:01:04,769 --> 00:01:09,540
So remember I'm going to use for loop even the question is being termed as use for loop.

19
00:01:09,540 --> 00:01:15,690
So for then my initialization, I will say I equal to zero.

20
00:01:16,680 --> 00:01:30,090
Then if I is less than the amount I have length, then I want to increase I plus plus and that is it.

21
00:01:30,090 --> 00:01:36,240
So here I can continue that log I and now I have it.

22
00:01:36,750 --> 00:01:40,530
Where is it that I have it as that?

23
00:01:40,530 --> 00:01:45,630
Then I got the individual record here as zero.

24
00:01:46,760 --> 00:01:50,660
One, two, three, four.

25
00:01:51,050 --> 00:01:55,700
But, guys, this one is just giving me the.

26
00:01:55,730 --> 00:01:58,330
How many loops that is this?

27
00:01:58,340 --> 00:01:59,320
I mean, record.

28
00:01:59,330 --> 00:02:02,500
This array is looping because it's looping.

29
00:02:02,510 --> 00:02:03,220
How many times?

30
00:02:03,230 --> 00:02:05,540
One, two, three, four, five.

31
00:02:05,840 --> 00:02:07,850
One, two, three, four, five.

32
00:02:07,850 --> 00:02:09,720
Because array are index based.

33
00:02:09,740 --> 00:02:12,170
So now you've got an index here.

34
00:02:12,320 --> 00:02:18,080
So it means that we can use this one to access the end of the record here.

35
00:02:18,620 --> 00:02:28,990
So to do that, I would take my amount array and then my square bracket and then the index.

36
00:02:29,000 --> 00:02:31,600
Let's see if I save it now.

37
00:02:31,610 --> 00:02:32,570
I got it.

38
00:02:33,020 --> 00:02:38,510
I go the first one, which is 92nd one, 401.

39
00:02:38,510 --> 00:02:41,150
And then and then that is it.

40
00:02:41,240 --> 00:02:43,880
About the first challenge.

