All language subtitles for 7. Print n even natural numbers - Question

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
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

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.