Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,120 --> 00:00:01,730
Hello, ladies and gentlemen.
2
00:00:01,770 --> 00:00:05,810
My name is Vlad, and this is an Alphatech C programming course.
3
00:00:06,090 --> 00:00:10,320
And in this video, we are going to do our second challenge.
4
00:00:10,740 --> 00:00:17,190
Now, once you know how to print your first and last name on the screen, your second exercise is to
5
00:00:17,190 --> 00:00:19,500
print more interesting information.
6
00:00:19,950 --> 00:00:27,270
For example, suppose that you have the most innovative social media application that stores some interesting
7
00:00:27,270 --> 00:00:32,070
information about you, like your full name, your age and your agenda.
8
00:00:32,280 --> 00:00:36,300
And before talking about healthy storage is actually managed.
9
00:00:36,720 --> 00:00:39,630
Let's talk about how this information can be printed.
10
00:00:40,230 --> 00:00:47,490
So this is just a part of our general system and we want to see how it will look like if we printed
11
00:00:47,490 --> 00:00:51,750
out a few lines that describe your name, your age and your gender.
12
00:00:52,410 --> 00:01:00,150
So the output on the screen should be something like Brad Pitt or as it's real full name says William
13
00:01:00,150 --> 00:01:01,240
Bradley Beat.
14
00:01:01,740 --> 00:01:02,180
All right.
15
00:01:02,190 --> 00:01:03,270
So the full name.
16
00:01:03,270 --> 00:01:09,030
And then we will have on the next line it's age, for example, 55 years old.
17
00:01:09,570 --> 00:01:12,890
And then on the third line, we will have weed's gender.
18
00:01:13,280 --> 00:01:13,610
Wow.
19
00:01:13,710 --> 00:01:17,100
For example, gender will be male in this case.
20
00:01:17,340 --> 00:01:26,010
Just print your full name and then on the next row, just print your age and then print your gender.
21
00:01:26,670 --> 00:01:29,640
And I want you to solve the exercising two ways.
22
00:01:30,090 --> 00:01:37,740
The first way will be to use three lines with a print of command that each line, for example, of three
23
00:01:37,800 --> 00:01:44,010
three different print F commands, first print off command, which brings the full name and jumps one
24
00:01:44,010 --> 00:01:44,820
row down.
25
00:01:45,180 --> 00:01:53,340
Second print F, print the H and jumps one row down and the third print half which simply prints the
26
00:01:53,340 --> 00:01:53,940
gender.
27
00:01:54,120 --> 00:01:56,690
So this would be the first way to solve that.
28
00:01:56,700 --> 00:02:02,790
And I also want you to solve it once you're done with the first way to solve it in the second way,
29
00:02:02,820 --> 00:02:09,420
to just use one print F to print all the information you've printed in the three lines before.
30
00:02:09,900 --> 00:02:11,610
This should not be difficult.
31
00:02:11,640 --> 00:02:16,890
Just think where you should place the backslash and in your print f command.
32
00:02:17,460 --> 00:02:22,590
Remember that print Afghan print text to more than just one line in your screen.
33
00:02:22,590 --> 00:02:22,870
Right.
34
00:02:22,890 --> 00:02:24,780
Like we've seen in the previous example.
35
00:02:25,170 --> 00:02:28,500
And that's exactly the case where we want to do so.
36
00:02:29,070 --> 00:02:32,640
So good luck, guys, and I'll see in the next solutions video.
3496
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.