Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,520 --> 00:00:04,810
All right, so what should we do in this exercise?
2
00:00:05,440 --> 00:00:13,350
So basically what we should do is to write a program that receives an integer value.
3
00:00:13,370 --> 00:00:18,700
OK, and this integer may be either positive value or negative write.
4
00:00:18,880 --> 00:00:22,720
The integers may be both also positive and negative.
5
00:00:23,860 --> 00:00:29,970
And one thing that you need to understand is that there are natural numbers and there are integers and
6
00:00:29,980 --> 00:00:31,420
in this case, integers.
7
00:00:31,420 --> 00:00:33,800
We know that they also may be negative.
8
00:00:34,240 --> 00:00:41,740
So what I want you to do is to write a simple program that will take some integer and print its absolute
9
00:00:41,740 --> 00:00:45,300
value in by saying absolute value.
10
00:00:45,310 --> 00:00:53,350
What I mean that if you receive minus 10, then the final result printed to the screen will be just
11
00:00:53,620 --> 00:00:59,980
the absolute value, which is then and if you receive five, you will also print five, you receive
12
00:00:59,990 --> 00:01:01,600
three hundred and thirteen.
13
00:01:01,900 --> 00:01:06,000
Then the print of the result will be just without the minus sign.
14
00:01:06,280 --> 00:01:09,310
And basically that's what you have to do in this exercise.
15
00:01:09,850 --> 00:01:17,140
So once again, receiving no an integer print, its absolute value to the screen, basically that this
16
00:01:17,140 --> 00:01:20,330
is it for these exercise guys.
17
00:01:20,620 --> 00:01:22,040
So good luck.
18
00:01:22,060 --> 00:01:26,050
Take a couple of moments and let's proceed with the solutions video.
1800
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.