Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
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.