Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,480 --> 00:00:02,900
So welcome back to another challenging hour.
2
00:00:02,940 --> 00:00:05,270
Alphatech Academy program in chorus.
3
00:00:05,550 --> 00:00:10,410
And in these challenge, you have to write a function that will get as a parameter, right?
4
00:00:10,730 --> 00:00:14,140
As a parameter, which should get a two digits number.
5
00:00:14,250 --> 00:00:20,340
And one of the first things that your function will have to do is to make sure that these number read
6
00:00:20,550 --> 00:00:21,330
it received.
7
00:00:21,570 --> 00:00:27,060
It has two digits, meaning you have to think of some condition that will check this out.
8
00:00:27,330 --> 00:00:33,000
And if that's the case, if that's the case, it should find out in print the maximum digit between
9
00:00:33,000 --> 00:00:33,630
these two.
10
00:00:33,930 --> 00:00:37,320
Otherwise, your function should print some error message.
11
00:00:37,320 --> 00:00:40,530
And please try again and give me another number.
12
00:00:40,620 --> 00:00:46,620
So, for example, if the function receives a number of thirty five, then the result that is going
13
00:00:46,620 --> 00:00:50,560
to be printed to the screen is just that the maximum digit is five.
14
00:00:50,580 --> 00:00:50,820
Right.
15
00:00:50,830 --> 00:00:53,160
Because five is greater than three.
16
00:00:53,250 --> 00:00:59,380
But if the number is, let's say 9000, then the function is going to print error and not add two digits.
17
00:00:59,410 --> 00:01:03,270
Number, please try again next time.
18
00:01:03,420 --> 00:01:05,490
So I hope the instructions are clear to you.
19
00:01:05,610 --> 00:01:09,120
Simply write a function that will receive one number.
20
00:01:09,300 --> 00:01:15,810
Make sure that this number has stood Egypt's and find out which one of them is the maximum.
21
00:01:15,900 --> 00:01:23,310
So once you finish that, I also want you to write a simple main program that will call this function
22
00:01:23,400 --> 00:01:27,420
and make sure that these function works as expected.
23
00:01:27,510 --> 00:01:30,390
So good luck, guys, and I'll see in the Solutions video.
2259
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.