All language subtitles for 9. Print Pyramid Numbers Pattern - 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, we are going to talk again about loops and how we can use them in order to utilize and

to create different patterns and to prevent different shapes to the screen.

So get yourself ready and let's go.

And what we have to do in this exercise is simply to write a program that receives an integer, which

will be the variable.

It's a variable in and in this exercise, we should print a pyramid of numbers with the following pattern.

So basically it should look like this.

We should start by specifying the number of rows.

OK, this will be the number, number of rows.

OK, the number of rows.

And once we specify the number of rows, we should print the following pattern.

So starting from one end on the second row, we will have two values.

So in the first row, one value on the second row to value two values on the third row, three values

and so on and so forth.

So basically, starting with just this pattern from one in incrementing each value from the left to

divide by one once again.

So one, two, three, four or five, six.

And also this should be printed like make sure you don't print it like this.

So one, two, three, four, five, six, because this will be just the right angle triangle.

And we I think we already talked about how to print this kind of shape, but rather, what do we have

to do is simply to print it like these this pattern of triangle.

So basically what you should think about is how you can know in advance what will be the number of spaces

in each row.

OK, so think about it, maybe two.

That's this will be just one space and so on.

And also how you increment the value.

If these were just stories you, you know, we could have printed like this.

So that's not a problem.

We already have done something similar to this exercise, but now we want to print the numbers in some

incrementing order.

So from one to six, or if we take a look, if we have rows equals two rows equals to four, then in

this case.

Sorry about that.

Let me just erase it.

Rows equals to where is it?

Where is the mouse.

OK, rows equals to four.

In this case, what we should print is once again on in the first line we should print something like

adjust the value of one, two, three, four or five, six, seven, eight, 10, nine.

OK, simply incrementing and in every line printing the exact number of values based on the line itself.

So line number one, that one value line number two, two values and so on and so forth.

So do a couple of minutes, think about the solution, try writing it down on your own in your ID and

of course we are going to solve it together in the next video.

So until then, good luck.

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