1
00:00:01,260 --> 00:00:02,490
Hey, guys, what's up?

2
00:00:02,760 --> 00:00:05,700
So in the last class, I introduced you to Eddie.

3
00:00:06,270 --> 00:00:09,120
Now in this class was all one problem on Eddie.

4
00:00:09,390 --> 00:00:10,740
So the problem is very easy.

5
00:00:11,190 --> 00:00:15,840
We have to some we have to find the somewhat ed elements.

6
00:00:17,430 --> 00:00:20,610
We have to find the sum of ed elements, for example.

7
00:00:21,600 --> 00:00:25,490
This is my Eddie and the values are three, four and five.

8
00:00:26,040 --> 00:00:33,510
So my answer should be three plus four plus five, which is doing OK.

9
00:00:33,690 --> 00:00:36,750
So we have to find the sum of Eddie Element.

10
00:00:38,110 --> 00:00:39,340
So the problem is very easy.

11
00:00:40,840 --> 00:00:41,770
So what do we do?

12
00:00:42,040 --> 00:00:44,710
First of all, we will take input.

13
00:00:44,770 --> 00:00:45,910
So how to take input?

14
00:00:47,350 --> 00:00:50,080
First, I will ask the user how many number of elements.

15
00:00:50,290 --> 00:00:53,710
So, say, in how many number of elements are there in the area.

16
00:00:53,860 --> 00:00:54,410
So seen.

17
00:00:54,420 --> 00:00:56,170
And then what I will do.

18
00:00:56,230 --> 00:00:58,390
I will make an eddy of size.

19
00:00:58,450 --> 00:01:00,290
And to store and values.

20
00:01:01,060 --> 00:01:03,580
And now they will take and will loose as input.

21
00:01:03,670 --> 00:01:04,900
So I equals zero.

22
00:01:05,410 --> 00:01:06,440
I list an end.

23
00:01:06,850 --> 00:01:20,320
I plus plus see in a off I now with the help of this I will be able to pick and values as input.

24
00:01:22,360 --> 00:01:23,540
OK, so what it will do.

25
00:01:23,680 --> 00:01:29,690
It will make an array of size and first index is zero and last indexes and minus one.

26
00:01:30,370 --> 00:01:38,050
And this and this variable I is ideating from position number zero daily position number and minus one.

27
00:01:38,440 --> 00:01:45,150
And each time it is filling the values we are taking input from the user and will fill the value.

28
00:01:46,330 --> 00:01:47,680
Now we have to find some.

29
00:01:48,230 --> 00:01:50,110
So we are finding some way to do.

30
00:01:50,350 --> 00:01:52,140
Now we have our area ready.

31
00:01:52,210 --> 00:01:55,990
For example, the elements are two for one and two.

32
00:01:56,350 --> 00:01:57,130
So what do we do?

33
00:01:57,220 --> 00:01:59,700
We will again, a trade or whether, Eddy.

34
00:02:00,280 --> 00:02:04,470
And when we are doing attrition or dairy, we will add the values.

35
00:02:04,690 --> 00:02:05,020
We will.

36
00:02:05,140 --> 00:02:05,960
We would we do Luby.

37
00:02:06,000 --> 00:02:08,560
We take a very well some some will initially be zero.

38
00:02:09,100 --> 00:02:13,980
We will add some equals, some plus a fight.

39
00:02:14,710 --> 00:02:16,150
So we will add a three here.

40
00:02:16,240 --> 00:02:17,220
Then we will end four.

41
00:02:17,320 --> 00:02:18,220
Then we will add one.

42
00:02:18,280 --> 00:02:19,630
Then we will add two.

43
00:02:20,020 --> 00:02:25,060
And finally, when this loop will dominate, I will see out some.

44
00:02:25,780 --> 00:02:27,250
So that is all that we have to do.

45
00:02:27,460 --> 00:02:28,570
So let's write the code.

46
00:02:29,810 --> 00:02:37,220
So that doesn't name this filer's LSM or let's call it some of very.

47
00:02:38,350 --> 00:02:40,090
Some of.

48
00:02:43,560 --> 00:02:45,800
Eddie, not CBB.

49
00:03:05,730 --> 00:03:10,730
Now, what we have to do, first of all, I would actually use the word.

50
00:03:10,800 --> 00:03:12,390
How many number of elements are there?

51
00:03:12,930 --> 00:03:19,490
So enter the number of elements.

52
00:03:32,490 --> 00:03:36,350
Now, there does make a variable in artistic input.

53
00:03:37,740 --> 00:03:39,390
So there are any number of elements.

54
00:03:39,510 --> 00:03:42,070
Now there does make an eddy of size N.

55
00:03:44,160 --> 00:03:44,920
Now what do we do?

56
00:03:45,000 --> 00:03:46,110
We will take input.

57
00:03:46,830 --> 00:03:48,690
So let us take input.

58
00:03:51,820 --> 00:03:56,580
So Ford and I equals zero.

59
00:03:57,220 --> 00:03:59,530
I list them and I bless bless.

60
00:04:02,090 --> 00:04:08,210
I will take input, so now at this point of time, my error is ready.

61
00:04:08,810 --> 00:04:10,610
Now I have to just find some.

62
00:04:10,760 --> 00:04:14,740
So initially I will take a variable sum, which will initially be zero on the rise.

63
00:04:14,750 --> 00:04:17,510
It will contain garbage value and allows it will be done.

64
00:04:18,340 --> 00:04:19,520
Now, what I will do, I will.

65
00:04:19,760 --> 00:04:21,140
I did order at it again.

66
00:04:22,220 --> 00:04:25,400
So forward I do it again over the erry.

67
00:04:29,640 --> 00:04:34,680
And what we have to do, we have to add the current value to Lessem.

68
00:04:35,160 --> 00:04:37,200
So seven plus equals to pay off.

69
00:04:38,450 --> 00:04:40,380
Now, that is all that we have to do.

70
00:04:40,980 --> 00:04:43,770
Finally, we will spend some.

71
00:04:46,280 --> 00:04:50,950
OK, so this is all that we have to do to find did some of the elements.

72
00:04:51,720 --> 00:04:52,540
So they're distressed out.

73
00:04:52,740 --> 00:04:52,980
I'm.

74
00:04:58,110 --> 00:05:04,080
So ended the number of elements led to a number of elements of tree and the elements are one, two,

75
00:05:04,200 --> 00:05:04,560
three.

76
00:05:05,520 --> 00:05:07,050
So my son is six.

77
00:05:07,350 --> 00:05:08,990
And these are Eddie elements.

78
00:05:09,910 --> 00:05:10,160
OK.

79
00:05:14,300 --> 00:05:21,880
OK, so let us do one more thing before finding this, um, let us spend the value of any let us spend

80
00:05:21,990 --> 00:05:22,590
at elements.

81
00:05:22,720 --> 00:05:25,160
So Folate and I it was his idol.

82
00:05:25,600 --> 00:05:32,840
I asked him and I bless bless you out, ÁLFHEIÐUR.

83
00:05:35,080 --> 00:05:39,070
So we are printing ed elements before finding this.

84
00:05:42,180 --> 00:05:42,440
OK.

85
00:05:44,380 --> 00:05:46,120
So this is for printing.

86
00:05:50,290 --> 00:05:51,470
Now, let us stop around.

87
00:05:53,510 --> 00:06:00,350
So let's say the number of elements out of five and the elements are one, two, three, four and five.

88
00:06:02,810 --> 00:06:04,810
OK, so this is printing.

89
00:06:05,800 --> 00:06:06,770
We are printing here.

90
00:06:06,860 --> 00:06:07,400
You can see.

91
00:06:07,430 --> 00:06:08,510
So this is printing.

92
00:06:09,290 --> 00:06:11,570
And this is the sum of the added one plus two.

93
00:06:11,570 --> 00:06:13,190
Blistery blissful plus five.

94
00:06:13,970 --> 00:06:14,150
OK.

95
00:06:14,240 --> 00:06:16,040
So the logic is very simple.

96
00:06:16,910 --> 00:06:19,190
So if you have any doubt, feel free to ask.

97
00:06:19,850 --> 00:06:20,390
Thank you.
