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
What is going on, guys?
And welcome back to another exercise in our programming course in this video, in this exercise, basically
what we are going to do is simply to talk about loops again.
Right.
So this exercise, what you have to do is just where is it?
Come here.
It's just to write a program that will receive a number from the user.
OK, let's suppose that this number will be of an integer type.
And once you receive this number, all you have to do is just to print the number, even numbers starting
from the number two.
OK, so not very complicated task.
Simply get some number and start printing all the even numbers starting from two up to basically given
some of even numbers.
OK, so let's see in a simple example where we have, for example, received now equals to five.
So in this case, what do we have to do is just print five even numbers.
You know, what is even an even number?
Right.
It is just a number that can be divided by two without a remainder.
And in this case, we will print two, four, six, eight and 10, basically, just as the instructions
are asking us to.
So starting from the number two five numbers in this case, because we received five is a number.
And basically, if we had to print seven numbers, we will simply go like from two, four, six, eight,
10, 12 and then 14 since we know we have to print seven even numbers.
So, yeah, I think that, you know, the approach, you know how to tackle this exercise.
Take your time and think about how sure you also are if you need to construct a condition.
Basically, there may be two approaches for solving this exercise, one approach.
OK.
My recommendation is to try both of them to see that you control and you feel like you can handle all
the problems and everything that may arise in one option and also in the other or so simply come up
with two solutions for this exercise.
One with with using simple conditions to check out if a given number is even or odd and basically another
option without using conditions at all in these four for a loop or whatever a loop you will lose.
So thank you guys, and good luck.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.