WEBVTT 00:00.180 --> 00:04.260 The problem after this video is still a creative one that issues this is some other medical series that 00:04.260 --> 00:07.040 has several properties but we are not here to analyze that. 00:07.080 --> 00:16.070 So the who won not just starts with 1 1 2 3 5 8 13 and so on and so forth. 00:16.080 --> 00:17.340 So a very good exercise. 00:17.340 --> 00:22.800 What you're used to pause the video and try to find how this series is calculated and what is this secret 00:22.800 --> 00:23.650 pattern. 00:24.150 --> 00:26.570 I hope that you find it but you didn't. 00:26.700 --> 00:30.460 The idea is very simple you just add the two previous numbers. 00:30.480 --> 00:34.030 So one plus one equals two then one plus two. 00:34.040 --> 00:37.740 It should go to three to plus three sequels to five and so on. 00:37.770 --> 00:42.240 They just think about our our start when we want to create this new program a program that can find 00:42.390 --> 00:46.130 any Fibonacci numbers where n again is given by the user. 00:46.170 --> 00:51.150 First of all when you consider what the structure of the program will be this may be a diff process 00:51.150 --> 00:54.810 where we do the same thing he added Lee for a given number of time. 00:54.840 --> 00:58.740 So we're clearly needs to use our FOR LAW that have been around for end time. 00:58.740 --> 01:01.480 Then we need to have two variables a and b. 01:01.680 --> 01:04.520 One for the first number in one of a second number. 01:04.590 --> 01:12.910 And of course we will initialize the numbers with one and one inside the four but we will have be new. 01:13.350 --> 01:18.790 You see quite a Plan B and a sequel to B. 01:19.170 --> 01:25.740 Because every time the beat takes annual Vi you know the sequel to DC dance of that is why you end a 01:25.870 --> 01:27.210 little niche study newald. 01:27.270 --> 01:33.270 So we'll dig the last of our you'll be following your one that this houdin on be again we have input 01:33.660 --> 01:44.640 into things is fun with one and one now for x in there ain't Zero cormark in it n here we don't need 01:44.640 --> 01:47.680 to have less money because we will not use the X.. 01:47.740 --> 01:49.980 We only need to over the range or looks. 01:49.980 --> 01:54.990 So it is very easy to be a quilt a plasma a to grow to be. 01:55.140 --> 01:58.750 But if you see in a split second you will not do that. 01:58.800 --> 01:59.850 We are already teens. 01:59.850 --> 02:00.750 They'd be here. 02:00.780 --> 02:03.730 So when we tried to take their order be we will fail. 02:03.840 --> 02:08.220 So we need to save the old BE SO be old. 02:08.240 --> 02:11.370 Sequel to be in here of course we the right be. 02:11.460 --> 02:12.600 Let's bring it out. 02:12.600 --> 02:17.400 We knew the series for only five numbers 2 3 5 8 and 30. 02:17.430 --> 02:18.700 So this is correct. 02:18.780 --> 02:24.690 Would you not have for fun use of a big number for example 100 now to see the results and as you can 02:24.690 --> 02:32.100 see here even from the 10 or 20 number it is really difficult for the user to do that. 02:32.190 --> 02:34.410 So the computer is the perfect solution.