Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,720 --> 00:00:08,910
All right, so after completing the previous exercise where we had to found to find out how many occurrences
2
00:00:08,910 --> 00:00:15,960
of even numbers there are in our sequence now, what we are going to do is simply to modify this question
3
00:00:15,960 --> 00:00:29,190
a little bit and to like to sum up calculate in return the sum, let's say the sum, the sum of all
4
00:00:29,190 --> 00:00:31,590
even numbers in a sequence.
5
00:00:31,670 --> 00:00:39,720
OK, so really the sequence of integers from the user until he or she inserts minus one, and once they
6
00:00:39,720 --> 00:00:46,170
do so, basically sum all the even numbers in this sequence and return the result.
7
00:00:46,800 --> 00:00:54,020
So in this case, basically we have two even numbers and their values are four and six.
8
00:00:54,720 --> 00:01:01,410
And the final result should be four plus six, which in this case will give us a total of 10.
9
00:01:02,940 --> 00:01:09,890
So what I suggest you to do is, first of all, understand what we have to do in this question, OK?
10
00:01:10,290 --> 00:01:18,630
And then what we will do is just taking the previous solution where we have to to work with or counting
11
00:01:18,630 --> 00:01:29,040
how many even occurrences there were in in our sequence and to modify these result a little bit, because
12
00:01:29,040 --> 00:01:35,430
still we are going to talk about even numbers in a sequence up until these base condition.
13
00:01:35,430 --> 00:01:42,180
Again, basically most of the things are pretty much the same, but something inside of these function
14
00:01:42,180 --> 00:01:52,920
is going to be changed to simply be a solution for these given question that we have right now.
15
00:01:52,920 --> 00:01:58,570
And this question is to sum in the return of the sum of all even numbers in this sequence.
16
00:01:58,920 --> 00:02:06,390
So think about the solution and let's meet up again soon enough and solve this really, really quickly,
17
00:02:06,420 --> 00:02:06,990
hopefully.
18
00:02:07,380 --> 00:02:08,070
Good luck, guys.
2193
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.