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
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
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,570 --> 00:00:01,720 What is going on, guys? 2 00:00:01,740 --> 00:00:09,930 And welcome back to another exercise in our programming course in this video, in this exercise, basically 3 00:00:09,930 --> 00:00:14,450 what we are going to do is simply to talk about loops again. 4 00:00:14,640 --> 00:00:15,050 Right. 5 00:00:15,660 --> 00:00:20,680 So this exercise, what you have to do is just where is it? 6 00:00:20,700 --> 00:00:21,210 Come here. 7 00:00:21,520 --> 00:00:26,160 It's just to write a program that will receive a number from the user. 8 00:00:26,190 --> 00:00:30,510 OK, let's suppose that this number will be of an integer type. 9 00:00:31,170 --> 00:00:40,680 And once you receive this number, all you have to do is just to print the number, even numbers starting 10 00:00:40,680 --> 00:00:42,240 from the number two. 11 00:00:42,270 --> 00:00:44,730 OK, so not very complicated task. 12 00:00:45,630 --> 00:00:54,670 Simply get some number and start printing all the even numbers starting from two up to basically given 13 00:00:54,750 --> 00:00:56,040 some of even numbers. 14 00:00:56,070 --> 00:01:02,940 OK, so let's see in a simple example where we have, for example, received now equals to five. 15 00:01:03,810 --> 00:01:09,580 So in this case, what do we have to do is just print five even numbers. 16 00:01:09,600 --> 00:01:11,670 You know, what is even an even number? 17 00:01:11,670 --> 00:01:11,990 Right. 18 00:01:12,300 --> 00:01:17,130 It is just a number that can be divided by two without a remainder. 19 00:01:18,000 --> 00:01:26,550 And in this case, we will print two, four, six, eight and 10, basically, just as the instructions 20 00:01:26,880 --> 00:01:28,000 are asking us to. 21 00:01:28,410 --> 00:01:35,600 So starting from the number two five numbers in this case, because we received five is a number. 22 00:01:36,090 --> 00:01:42,900 And basically, if we had to print seven numbers, we will simply go like from two, four, six, eight, 23 00:01:42,900 --> 00:01:49,890 10, 12 and then 14 since we know we have to print seven even numbers. 24 00:01:50,760 --> 00:01:55,740 So, yeah, I think that, you know, the approach, you know how to tackle this exercise. 25 00:01:56,730 --> 00:02:03,420 Take your time and think about how sure you also are if you need to construct a condition. 26 00:02:03,420 --> 00:02:08,680 Basically, there may be two approaches for solving this exercise, one approach. 27 00:02:08,700 --> 00:02:09,000 OK. 28 00:02:09,040 --> 00:02:15,810 My recommendation is to try both of them to see that you control and you feel like you can handle all 29 00:02:15,810 --> 00:02:23,040 the problems and everything that may arise in one option and also in the other or so simply come up 30 00:02:23,040 --> 00:02:25,200 with two solutions for this exercise. 31 00:02:25,200 --> 00:02:33,840 One with with using simple conditions to check out if a given number is even or odd and basically another 32 00:02:33,840 --> 00:02:41,640 option without using conditions at all in these four for a loop or whatever a loop you will lose. 33 00:02:42,060 --> 00:02:44,280 So thank you guys, and good luck. 3331

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