WEBVTT 00:00.450 --> 00:02.770 At this point we can go a step further. 00:03.000 --> 00:04.510 Read it there's thousands that are available. 00:04.540 --> 00:06.410 There's just a name that carries on no. 00:06.540 --> 00:09.230 You didn't create as many names as you want. 00:09.310 --> 00:12.110 They're writing something like gee a sequel to five. 00:12.120 --> 00:17.320 So we just tried to solve one more problem not understand the power of the Using what it was. 00:17.340 --> 00:21.010 The goal is to take any three digit number of n saw the numbers. 00:21.030 --> 00:27.690 It consist of more specifically if you give the number 400 A did all the computer needed to solve for 00:27.750 --> 00:28.610 aid. 00:28.920 --> 00:34.990 As always you can positively for I mean it in trying to solve this problem on your own. 00:40.700 --> 00:43.340 We already assumed that with whoever said he did. 00:43.370 --> 00:46.180 No we can't write of separated in steps. 00:46.220 --> 00:52.100 First we can try to extract the first number and investigate the used to define the number 100. 00:52.160 --> 00:59.150 So for example if the user gives you four hundred and fifty seven you will have as a result for cormark 00:59.170 --> 01:03.880 57 or if they use it gives you one hundred twenty three. 01:03.980 --> 01:05.720 You will have a series out. 01:05.720 --> 01:07.980 One call might 23. 01:08.160 --> 01:15.410 So you would write to act on it in the top part of the number for a comma fifty seven when you get the 01:15.410 --> 01:16.670 number. 01:17.180 --> 01:19.910 Now we need to find a way would it be to this same procedure. 01:20.000 --> 01:22.650 An idea is to subtract the first digit. 01:22.790 --> 01:25.320 So what do you need to subtract from the number. 01:25.370 --> 01:27.940 Four hundred and fifty six. 01:28.040 --> 01:34.650 Then number four hander at or from the number of 123 the number 100. 01:34.910 --> 01:39.310 And you would have however there is out fifty six and 23. 01:39.400 --> 01:43.660 This is a guess that the equation is no minus. 01:43.660 --> 01:45.100 First is it. 01:46.960 --> 01:53.160 Multiply it by one hand and then if you understand this concept it is really easy to create their list 01:53.170 --> 01:54.050 or the code. 01:54.200 --> 01:58.440 More specifically the first example now you know the number 56. 01:59.360 --> 02:02.350 So first you will divide within Number 10. 02:04.180 --> 02:07.340 Deike in the top part which is the number 5. 02:07.600 --> 02:10.650 And then you will subtract from the number 56. 02:10.660 --> 02:16.610 Number Five want to play it by 10 so you will get the number of six as you can see here will succeed 02:16.610 --> 02:21.140 to take the number 6 5 and 4. 02:21.340 --> 02:24.260 The key is that you didn't understand feel free do what again. 02:24.280 --> 02:25.400 Least part of the veldt. 02:25.540 --> 02:27.840 Let's start I degrade this thing called first. 02:27.840 --> 02:33.610 William is alive then no that the sequel does three hundred and ninety six. 02:33.670 --> 02:34.980 Then we need the first. 02:35.020 --> 02:44.410 So first is equal to indictor because we need the indigent part of our number divided by 100 as we already 02:44.410 --> 02:45.970 talked about in the analysis. 02:46.010 --> 02:48.480 And here we can print the result. 02:49.210 --> 02:54.410 So if the code is correct so far we will have the number to 3. 02:54.750 --> 02:56.470 Okay everything is correct. 02:56.630 --> 03:07.060 No one was bigger than number and subtract there they did the first digit that is multiplied Y by 100 03:07.450 --> 03:08.550 on liquidity bag. 03:08.570 --> 03:15.280 We can print the number now sure we want however the number 9. 03:15.910 --> 03:16.540 Okay. 03:16.570 --> 03:18.980 Again everything is correct. 03:19.030 --> 03:23.410 The second day it is again equal to thing. 03:23.470 --> 03:28.810 Is a part of the number that now was divided by 10. 03:28.810 --> 03:31.160 We can again print the second digit. 03:33.700 --> 03:34.650 Ends Here. 03:34.750 --> 03:43.540 Indeed it is equal to the number that was minus the say it was delayed by 10 as we already talked about 03:43.870 --> 03:47.960 in the previous section of the court and we will bring the out. 03:49.850 --> 03:51.920 I gave 3 9 6. 03:52.020 --> 03:54.050 Give some other numbers. 03:54.240 --> 04:01.770 One they would do for 1 3 4 9 8 7 9. 04:01.790 --> 04:04.250 A 7 okay everything is correct.