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
Welcome back, ladies, ladies and gentlemen, to this amazing exercise in our recursive functions and
now what we are going to do is basically what are we going to do is to write a recursive recursive function.
That's basically what he's going to do, is that it's right, rather recursive function that will receive
some no say in.
All right.
And this function is going to receive some number and and what it will do is just to print this function,
will print all the numbers from one from one up from one four one up to this and up to end.
OK, so that's basically all these function will have to do.
So for example, for example, if we know the function receives, I don't know for them in this case.
OK, so let's say input use four.
And in this case, what's going to be printed to the screen is just something like this.
One, two, three, four.
OK, seems to be pretty, pretty easy.
But does it I mean, is it really easy or basically you have to think about it more in depth because
you probably know that you could do so simply by running some for a loop.
And to use like for I equals to one as long as I is less than or equal to this and and just print the
result.
So basically you could go with just these solutions.
Let's say that's the body of the function.
So for let's say I equals to one as long as I is less than or equal to and I plus plus and then basically
to print half just percentage and specify here I write.
So that's basically the most trivial way to solve this exercise.
But of course that's not the case because we are using here a recursive function in not an iterative
approach with using these for a loop.
So think about the solution.
Think about where you're going to place the print line and where you were going also to do the recursive
call.
And how will you also specify the stopping or basically the base condition.
So good luck, guys.
And once you're done, I will see you in the Solutions video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.