Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,420 --> 00:00:06,060
So we'll solve this exercise very quickly, because it's pretty much the same as the previous challenge.
2
00:00:06,240 --> 00:00:14,820
So let's start with the include stpi o include SDD I o h all the necessary functionality to work with
3
00:00:14,820 --> 00:00:16,170
inputs and outputs.
4
00:00:16,800 --> 00:00:21,630
Then we'll just go and main the entry point curly brackets.
5
00:00:22,110 --> 00:00:26,160
And first thing that we want to do is the Solvay thing in the first way.
6
00:00:26,580 --> 00:00:31,500
We just want to use three print F lines, three print F commands.
7
00:00:31,740 --> 00:00:37,170
So the first print command should print something like the first name and the last name.
8
00:00:37,440 --> 00:00:40,150
For example, here it's full name.
9
00:00:40,890 --> 00:00:45,030
Going to be Brad Pitt, as we said previously.
10
00:00:45,390 --> 00:00:46,950
And we'll also add a backslash.
11
00:00:46,950 --> 00:00:50,910
And in the end, at the end, to just add a new line.
12
00:00:51,750 --> 00:00:53,100
OK, semicolon.
13
00:00:53,400 --> 00:00:57,660
Now on the second print f we'll just use print F a G.
14
00:00:57,870 --> 00:00:58,200
Right.
15
00:00:58,230 --> 00:01:02,000
It was age 65 or 55, I guess.
16
00:01:02,540 --> 00:01:04,470
Lashan semicolon at the end.
17
00:01:04,770 --> 00:01:07,500
And also, we'll just use print Taffe.
18
00:01:07,590 --> 00:01:12,650
And the gender in this case is male.
19
00:01:13,010 --> 00:01:13,300
Right.
20
00:01:13,350 --> 00:01:17,070
Male Becs Lushan and semicolon at the end.
21
00:01:17,190 --> 00:01:17,910
Let's save it.
22
00:01:18,050 --> 00:01:20,970
And now with we are to run this program.
23
00:01:20,970 --> 00:01:22,020
Let's do it this way.
24
00:01:22,020 --> 00:01:23,130
buildOn, run.
25
00:01:23,340 --> 00:01:24,090
So there you go.
26
00:01:24,090 --> 00:01:31,030
You can see all your information, full name breth paid in this example leads Brett Bear in your example.
27
00:01:31,030 --> 00:01:35,730
It should be your first name and last name, the age and the gender.
28
00:01:36,120 --> 00:01:42,630
So this information is usually a must for any registration, web and applications that you are going
29
00:01:42,630 --> 00:01:44,520
to developing in your future.
30
00:01:44,970 --> 00:01:49,590
So this is just the first glance to what we are going to develop.
31
00:01:50,010 --> 00:01:52,770
Once we become experts in programming.
32
00:01:53,490 --> 00:01:56,460
So this is Zaid's for the first way.
33
00:01:56,730 --> 00:02:00,880
And now let's solve it with just one printf line.
34
00:02:00,960 --> 00:02:01,500
All right.
35
00:02:01,890 --> 00:02:05,370
So we we'll use just one print half instead of three.
36
00:02:05,610 --> 00:02:10,860
And we can remove both of these lines and we will just place the backslash in here.
37
00:02:11,130 --> 00:02:12,450
Full name Bret Beard.
38
00:02:12,930 --> 00:02:21,070
And by using this new line, we can add also age right after it, age 55, backslash and to get one
39
00:02:21,070 --> 00:02:21,660
new line.
40
00:02:22,140 --> 00:02:24,750
And then we'll go, why gender?
41
00:02:25,020 --> 00:02:26,460
And there you go.
42
00:02:26,490 --> 00:02:28,720
Gender, male backslash.
43
00:02:28,730 --> 00:02:29,580
And at the end.
44
00:02:29,910 --> 00:02:31,620
And then we can save it.
45
00:02:31,860 --> 00:02:33,780
Now we can build it and run it.
46
00:02:33,990 --> 00:02:34,620
And there you go.
47
00:02:34,620 --> 00:02:37,630
You can see actual pretty much the same.
48
00:02:37,650 --> 00:02:43,020
Actually, it's identical result with just using one print F line.
49
00:02:43,080 --> 00:02:44,400
One point F command.
50
00:02:44,640 --> 00:02:46,050
Instead of using three.
51
00:02:46,470 --> 00:02:48,930
So both of them give the same results.
52
00:02:48,960 --> 00:02:51,690
But you may choose whatever you like.
53
00:02:51,810 --> 00:02:58,290
For now, for beginners, I suggest to actually split it into three lines as it was previously like
54
00:02:58,290 --> 00:02:58,740
that.
55
00:02:59,160 --> 00:03:05,370
So it will be it will be much more easier for you to see what you're printing to your screen.
56
00:03:05,490 --> 00:03:06,180
All right, guys.
57
00:03:06,390 --> 00:03:08,010
So I hope that makes sense.
58
00:03:08,010 --> 00:03:16,140
And all of this program is just sort of additional practice for you to get yourself more familiar with
59
00:03:16,170 --> 00:03:18,170
C language and with the C rules.
60
00:03:18,170 --> 00:03:19,920
Sound the print F command.
61
00:03:20,130 --> 00:03:21,450
So until next time.
62
00:03:21,800 --> 00:03:22,180
By.
4987
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.