WEBVTT 00:00.330 --> 00:04.230 So in this video we will try to create a dynamic factorial program. 00:04.230 --> 00:10.630 First of all I want to clarify that the problem is not just to calculate the factorial number. 00:11.640 --> 00:13.920 But to calculate all of the factorials. 00:14.040 --> 00:17.720 But to calculate the factorials from 1. 00:21.410 --> 00:23.980 So the number n that is given by the user. 00:24.120 --> 00:30.990 So the idea here is to create a follow up from one when we say that in every step of the law the program 00:30.990 --> 00:34.190 will calculate the factorial of the number X.. 00:34.830 --> 00:41.900 First the effective one then the factory or two on the way to end in a little kartika later factorial. 00:41.960 --> 00:49.290 We didn't create another one for up again and take the other for a loop that we calculate the factor 00:49.390 --> 00:57.270 of n So these lobe will it goes from one to X. But as we already analyzed the previous We though we 00:57.270 --> 01:02.570 only need to multiply the previous number of the three. 01:03.340 --> 01:07.240 With the X number n then we will see the results. 01:07.240 --> 01:09.850 First we need to input number from the user. 01:11.600 --> 01:15.260 Then we will create that empty least as always. 01:15.980 --> 01:18.100 And we would love paint the first number. 01:19.280 --> 01:21.560 As you read it is that the first number is one. 01:21.710 --> 01:31.100 Then we need to follow up X in the rain at 1 2 in the order of an are always has one in that temporary 01:31.100 --> 01:40.880 variable here is it add a X minus 1 as we already analyze multiplied by X then we love bend this number 01:40.940 --> 01:43.010 to the three. 01:43.340 --> 01:47.490 Let's see the results with a print function of that age. 01:48.380 --> 01:50.700 Of course as always we forget that the column. 01:50.840 --> 01:59.080 This is a very classical mistake by we will do that four or five numbers all as you can see here we 01:59.100 --> 02:00.140 have a mistake. 02:00.140 --> 02:03.920 So other readers think exercise for you is sort of sand why this happens. 02:04.160 --> 02:07.830 So you can pause the video for a minute and try to solve it by yourself. 02:07.880 --> 02:09.440 Okay I hope that you find it. 02:09.470 --> 02:14.210 We will create other Territorials that will teach you how to debug a program saw the problem here is 02:14.210 --> 02:19.960 these miners one so we can try again five numbers and the results are correct. 02:20.240 --> 02:23.650 We can use the table from here to share.