Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,300 --> 00:00:06,720
Welcome back, ladies and gentlemen, to another video in our programming course, you need this exercise
2
00:00:06,720 --> 00:00:14,940
of what you are requested to do is to write a program that gets some value from the user or some integer
3
00:00:14,940 --> 00:00:15,610
value.
4
00:00:16,020 --> 00:00:22,920
And these programs should basically check if this given number we received from the user is a double
5
00:00:22,920 --> 00:00:25,840
digit or a triple digit number.
6
00:00:26,190 --> 00:00:30,270
So basically, if we will just see a couple of examples.
7
00:00:31,020 --> 00:00:35,760
Twenty two is double digit because it contains two digits in this number.
8
00:00:35,770 --> 00:00:38,010
So two and two double digits.
9
00:00:38,670 --> 00:00:43,380
Thirty five is a double digit number since we have three and five.
10
00:00:44,100 --> 00:00:47,040
One hundred and one, it's a triple digit number.
11
00:00:47,040 --> 00:00:54,810
And if we take, for example, five, the number of five, it's neither a double digit nor triple digit
12
00:00:54,810 --> 00:00:55,280
number.
13
00:00:55,770 --> 00:01:04,050
So also, if we take something that is greater than triple digits, so we will also would like to print
14
00:01:04,290 --> 00:01:04,810
that.
15
00:01:05,160 --> 00:01:09,560
The result is that the number is neither double nor triple.
16
00:01:10,020 --> 00:01:14,040
So I think there is nothing complicated in this exercise.
17
00:01:14,280 --> 00:01:21,210
Just take your time and think about what should be the conditions to check if a given number, if a
18
00:01:21,210 --> 00:01:29,050
given integer is a double digit integer or is it a triple one or maybe if it's not double digit and
19
00:01:29,160 --> 00:01:30,480
not triple digit.
20
00:01:30,660 --> 00:01:38,040
So maybe we should print some nice message to the screen that is simply saying that it's neither double
21
00:01:38,190 --> 00:01:39,120
or triple.
22
00:01:39,600 --> 00:01:43,470
So give it a try on your own and I will see you in the Solutions video.
2187
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.