WEBVTT 00:00.150 --> 00:04.260 For the second program we would have died to create the procedure that we talked about in a previous 00:04.260 --> 00:04.810 release. 00:04.930 --> 00:08.180 So we need to calculate the date of a number again. 00:08.250 --> 00:13.420 It took the number nine hundred forty two all the output is three. 00:13.500 --> 00:14.850 The idea is very simple. 00:14.850 --> 00:17.600 We need to start guessing how many numbers we cut. 00:17.670 --> 00:21.300 Of course we will have started with the assumption that we have only one number. 00:21.300 --> 00:27.790 So for example if we cover the number six we need to divide our a number with 10 in there he's out. 00:27.810 --> 00:29.450 He's a zero point six. 00:29.610 --> 00:33.300 So if you take that into part it is equal to zero. 00:33.300 --> 00:40.290 Now after that done numbers if we cover the number fifty eight in the week divided by 100 it eases zero 00:40.320 --> 00:42.240 point five eight. 00:42.810 --> 00:46.200 In vignetted he says you know so we have two digits. 00:46.200 --> 00:52.620 This can be used in that it is process that every day we will divide over a number or with 10 then 100 00:52.650 --> 00:57.530 1000 and deal with David indeeds a number of the division equal to zero. 00:57.540 --> 01:03.340 One more example in order to make it clear if we have the number of four hundred and sixty one we will 01:03.350 --> 01:10.380 oppose divided by 10 ending at this 46 Then we be divided by 100. 01:12.410 --> 01:16.880 Endanger Barkleys for Finally we will divide into by 1000. 01:19.410 --> 01:21.450 Ending the part is zero. 01:21.450 --> 01:23.400 So you have three digits. 01:24.810 --> 01:26.880 Lists three deployment of these in both them. 01:28.210 --> 01:37.120 So we will have the number 31 and we will assume that it's for now is one and the kid is 10. 01:37.120 --> 01:39.190 Because for one they did have 10. 01:39.190 --> 01:41.530 So we will test it in order to do that. 01:41.530 --> 01:48.120 We will take that in the test part of the division between the number and that that it. 01:48.160 --> 01:55.610 So while the test is not equal with zero we will do our loop. 01:55.660 --> 02:01.510 This is very important because every time that the test is equal to or four or five or any numbers in 02:01.510 --> 02:03.140 general we'll have more today. 02:03.160 --> 02:08.170 It's about even the output is equal to zero where we landed and we saw that did it. 02:08.260 --> 02:10.420 So does this not equal to zero. 02:10.540 --> 02:21.250 And in these cases we have modelled it it fell digits is equal to date it's plus 1 and D E C C C D C 02:21.280 --> 02:22.650 multiplied by 10. 02:22.690 --> 02:27.610 Again if you calculate that test test is who quote doing the Juror number. 02:27.670 --> 02:30.490 Divide by the use anyway. 02:30.500 --> 02:33.900 But in that it's let's say the results double digits. 02:33.940 --> 02:35.380 This is correct. 02:35.470 --> 02:37.980 It is again correct. 02:38.360 --> 02:38.980 And 02:41.980 --> 02:44.510 one digit I think that this took it or not.