Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,240 --> 00:00:05,670
What is going on, ladies and gentlemen, that's time for a challenge, and your task is to write a
2
00:00:05,670 --> 00:00:09,730
program that checks whether a given number is even or odd.
3
00:00:09,930 --> 00:00:15,690
And basically, what you have to do here is to develop a simple program that will read some integer
4
00:00:15,690 --> 00:00:20,850
value from the user and find out if that given number is even or odd.
5
00:00:21,030 --> 00:00:26,040
You should simply use some condition that will check if the number is even or odd.
6
00:00:26,130 --> 00:00:31,350
And then based on the result of the condition, it will print out a corresponding message.
7
00:00:31,680 --> 00:00:37,100
For example, if the number is five, then we should print five is an odd number.
8
00:00:37,260 --> 00:00:42,540
But if the given number was, for example, 20, then we should print 20 is an even number.
9
00:00:42,550 --> 00:00:42,930
Right.
10
00:00:43,110 --> 00:00:44,860
So I hope you got the idea.
11
00:00:45,000 --> 00:00:52,440
And that's actually the first exercise that you're probably doing using using the new topic of conditions
12
00:00:52,440 --> 00:00:53,160
on your own.
13
00:00:53,520 --> 00:00:56,880
So take your time and I'll see you in the Solutions video.
14
00:00:57,090 --> 00:00:57,600
Good luck.
1412
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.