WEBVTT 00:00.210 --> 00:02.390 Let's try to solve a maximum problem. 00:02.430 --> 00:05.360 So we need to find the maximum number and between three variables. 00:05.490 --> 00:13.400 Let's assume that we have the number x required tool y equal to minus 4 and Z equal to 9. 00:13.530 --> 00:14.850 Well who's with the maximum number. 00:14.850 --> 00:16.670 He said this is equal to 9. 00:16.740 --> 00:19.360 You need to create the code only with your statement. 00:19.360 --> 00:23.210 And of course variables you can solve the problem with so many ways. 00:23.250 --> 00:27.700 The first one that pops up to my head is to make a properties. 00:27.830 --> 00:34.140 We see people who we can compare to the x y in the Y Z and the winner of the pairs we've comparing nodded 00:34.200 --> 00:36.030 to find the biggest number. 00:37.850 --> 00:45.410 So first we need to initialize the three vials X to Y equal minus 4 and Z equals nine. 00:45.410 --> 00:52.060 Now we can compare the X less than Y marks x y. 00:52.320 --> 01:00.120 You go to y of course else the maximum of X Y is equal to X.. 01:00.380 --> 01:03.440 Then we compare the Y Z if y. 01:03.680 --> 01:08.420 Less than zet marks y z is equal to Z. 01:08.780 --> 01:12.730 X Marks y z is equal to y. 01:12.920 --> 01:15.030 Finally we will compare the results. 01:15.100 --> 01:29.540 If marks x y selected marks set then marks all his equal tool marks why zet else marks all is equal 01:29.540 --> 01:33.010 as tool marks x y. 01:33.140 --> 01:37.690 Finally we will be in various parts green marks. 01:37.950 --> 01:39.780 Finally we need to see here that there is out. 01:39.800 --> 01:43.400 Easier said than the sequel to 9 bill correct. 01:43.520 --> 01:47.360 We can taint the why and second 15. 01:47.360 --> 01:49.180 NOW 15. 01:49.270 --> 01:51.270 RJ this seems pretty good. 01:51.410 --> 01:53.340 Let's try to create something better. 01:53.360 --> 01:57.450 And they did assume that the first number is the maximum number some marks. 01:57.450 --> 02:01.340 All is equal to x and then tick with the other numbers. 02:01.340 --> 02:02.410 If this is true. 02:02.930 --> 02:09.860 Fresh willingness to lie 6 equal to 22 whites equal to 12 and Z equal to 25. 02:09.890 --> 02:12.070 First we will initialize Max. 02:12.110 --> 02:14.250 All you see is what works. 02:14.330 --> 02:15.430 Then read compare. 02:15.520 --> 02:19.830 If marks are less than Y then the marks. 02:19.850 --> 02:30.660 All is of course from now one is equal to Y and he marks all is less than z. 02:30.860 --> 02:32.440 From now on Max. 02:32.480 --> 02:34.740 All is equal opposite here. 02:34.760 --> 02:38.500 Here we forget the columns as well. 02:38.960 --> 02:41.030 One little of it is out. 02:41.140 --> 02:46.670 Also we forget to all print the result so print marks on. 02:46.690 --> 02:48.040 Of course it is correct. 02:48.050 --> 02:50.550 There's a sequel to minus one. 02:50.750 --> 02:52.450 So there is an extended tool. 02:52.470 --> 02:55.450 Okay this seems fine.