All language subtitles for 8. Print Your Birth Year - Solution

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

So welcome back, I hope you tried to solve this exercise on your own and now we are going to simply

see how it can be done in C programming language.

So, first of all, we are not talking about how it can be done using variables, because that's something

that we didn't speak about in these course until now, until the next election, probably.

So here, if you know how to use variables, that's OK.

But that's not the point of this exercise here.

We are simply going to use just one printing line and print the values and print the actual year of

birth to the screen.

So this a year of birth can be calculated very easily.

First of all, what we need to know is what's the current year?

So, for example, it may be, I don't know, twenty, twenty one or twenty twenty five.

I don't know what which year you see these these exercise.

And also what do we have to do is to know your current age.

So if it's, for example, 20 or 30, I don't know.

So once we know both of these values, we can calculate the year of birth just by taking current year

and subtracting age from it.

So let's write some code to simply print these lines.

So print out print out the year you were born or.

Yeah, the year you were born is and you'll hear a placeholder percentage, since we are going to use

just integer values in this percentage.

These should be replaced with what?

With the current year, let's say twenty twenty one minus the age, let's say 20 semicolon at the end

to specify that we've done with this comment.

So instead of these percentages, we will have the calculated value out of this expression.

So it's going to be probably be twenty twenty one point two thousand and one.

So sorry for that.

So the year you were born is two thousand and one.

And if your ages, I don't know, 30.

OK, so you simply run it once again and you will get nineteen ninety one.

So that's a simple exercise to how you can find the year of birth based on the current year and of course

the age either at your age or somebody else.

So thank you guys.

Let me know if you like this video.

Let me know if you have any questions.

Don't forget, of course, to leave some review to do leave some feedback so that this way I will know

if you like the exercises or not.

Of course, that's just the basics.

And we are going to get much more complex exercise our exercises as we move on with this course.

So stay tuned and I'll see you then.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.