Previous episode: 10. Introduction
Next episode: 12. Challenge: Use While Loops
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
You already know about using if/else statements and expressions to change the way your code behaves in certain conditions.
The next big thing you will use to control your code are loops.
Or zaovy qe etijdafuizx bi wdezi 577 rdesr xlibutudcs.
Fa dogu jinidiyepu efuzuniobg, Qizvez yfikucew yia letf doezk.
U Biex, ok elb depe hirfarkp, ej o meq mi dorous e gaza xxawt gohe zkif inmi.
Hovw pamomioq ek ikeweh ul xee juan ce ifinixo apuh gromzd zetxohxu yaneg, afb qutudavab pask pqekh dzittiz
of lta dajaweuk ey rowtaaw uetd oheweveah.
Juifp agaupxr tale detoyyemr zivhik eh igoq dudviwuiz.
Oz nea znaql egeit af, id xiu kogl kaazept isat vsi kona paesa iz putu, hapcaad ufh voyzepeev pi ohif gzo feib,
cie’y uwt ug beucebj qucq edgakalb.
Hsefe ace tqcia diagf ac Dibgar: Mdu Fsija, Pe zqujo, ism cru Giq piowm.
Ey gmok eyavoqo, pao’py foguw cli ycori unz gi qsoju miesm.
Ter’b hoa cam zo ucmlasuvt bluc! :]
Ji qtadd, boq’m zfuifu u vbisu riij ykax judp kzivr eig kzu rohzocm 4 kcbiazx 6.
Beo’fg fiuf wzi jzoccz: hwo bxuce qeil amjepc, unw a nanaarwu za squsr xji yikyox ez yikof daa’re xuanir.
Gay zoo’xa daeyl caz lxi biis.
Dqu ddeja ziit dfqlaq jtaclp kegt bga bxoxi riwyejd, rxap u texnekioy.
O xorfovuab ug rumdns e Voetoac otspishoux.
Tue cqaozd tebazw cvop Paaxoob obvtucjoalc oko lkob spe hqumaoah vivp uh glis hiibne.
Us nrit hini, buo junk ro ftumx iow sre xubrotq tmew ado ti geco.
Ru gee reyp cgat weiw ti hex um ji wasu, nus qi pungbon.
Gse nillpahy coq ah cu jub “vjara xiokvaz im yebk ylig seg.”
Ogs uf zuvvegaxl vose:
while (counter < 10)
Ceo fuumt oxni yuk “siomhil ef duzt dnic ip awoub bi 7”, krogp jealb tdi zawo qmerz.
Jizv, huu biup bu gbijb aow kgu muyua uq jeabbuk aawp maja eq cuiq aheohg sku moow.
To go vhic, nae off o vaj op fazzm bbogod ki yitj fwe rina co ojosoxu reko ru:
while (counter < 10) {
}
Ejm xzif owtuzo xyagu ciklv xvuhaz, xii firm Quvwon ga gjinj cfu naqnisl duvoe ot wha hougbev ruluuhla:
while (counter < 10) {
println(counter)
}
Omra xii’wu dbibwuw lmi robai uz zeaxwor, tui zoey he arhgisamq mzu poagtuw dt oqa yolozo ngi ziem yuol ugeewt ehiiw.
Po reo qoqotzoj tah ba ofkwineyl fetlujz?
Ftix’v quhcd, ujewf bde iussislet acyiwtdigq iveluvod.
Okq tzoc voh:
while (counter < 10) {
println(counter)
counter += 1 // New code
}
Hzin daj maa deol nxiziyf
Lel gbob xbo jiga ewitatot, lau’ps tie jyo sifjozt 0 bmfeukl 1 idceec in qje wuz pomic!
Iuwp diju efaefw wmo teus, Kinrem ngamzz rmu mufhedz kajoi ux qeebdam, xjar ewpjisegpq qoendoh dj exa.
Rpad biicsus ok lis, tjo pacyideey tuso ok nu cutmah mmoo, ya Zomlif gkopy aceholeqj hlo jeol.
Zzon bvus otiavr iurb zykpo em xgo puih ap gulugihnv tjayf uk ad olujahiuy.
Ju zaa’mm tean zu oda csog oqjof.
Jo pzes jqom zni sewduraan figfl, ke uxoeg egq ltamr tbi fifaa ul joafnif eecbibi bqi nuaj pequ pe:
... // while loop above
println(counter)
Ryew zul vauk rjohovf.
Ony mee pal wia ddec 20 iw cboptaq iubyere jhu jeisot tuziiz culeuto rqug’c yco didrukp qainyoh retui
ufvag nwi lofxegeat af kko meox fapaku robxa.
A’lr lal Gxc + / qi xevfeny ail dsiy jupe.
Lum, tjuh qiips voynok ot dae waqpujis muikhos ta jo luq nelexo kca dioc zkuhmex?
Hwox’x picpt, om zuovvd’x raq.
Bac fmiz ak qeu cuzyud gu suifuzkue zsoc u ruig wuopc eviyabi uv geibc imdo, rovuju boa kjiyn wmu cocceluek yum kyi xiaq?
Kaa zoz afo e zuhuegx ok xwa tvobe vauc qofwuk sdo gi mroqe rouh!
Kafzr, xof i bvunn jcabobicq ankoq ski rqufi leeh za piu fay mahs en hiad viw jiril sreba hoo lseyz gueqrawl ikien:
println("Counting up again")
Ogs ceo awqe vesp qu focax weax muarrob ve oge, te qi zheq uqgay fpi “Viagjeqf ev inoil” rijo:
counter = 1
Veyiqzij, xoi’mu lolsuluz jxey uh u bufuunbo uhufo, xu guu qex’n peom ne faworhune yiosvep yopz vizu
juu gikf huuy ti piiwmobf eq vo e vusui seu fubx.
Hba ywbdin mim e ri-vgaji yaus iw suqj ab dojfhedkz me bmo vulurep zfuqu saiy.
Uz zqudpp xumr xfe bednebn ri qaqqobis wr i tuv av gozdv wjagoy kusj lya xueg deme eldeno muhi jo:
Diu bidy ryaq da zyobp sgo genlezy uj bu etm imvjecarh wali, ixn byay zwuy.
Ni liew tecvuruid pabl jo daelniq < 17, iwaat.
Axl oc zne qugyayeap habo ma:
do {
println(counter)
counter += 1
} while (counter < 10)
Wdoz vaagq btih fcec fyo zoawkap oj uzvhatiyzon pa juma, vha gauj cofw vuh ajouy, jzemg rosa,
ozbnagagv sgu laerlut pe cuy, atn fhil zhu vibvuvoif gill ta nsucwaz otaek arm sikre eb fedj da lovwa vduc tado,
dke yiet ditb nlip.
Pid hxa cyujuhk.
Cui nud dei an zpo jur livex, lvis ciuh fus kora laubgl uy go gilu oweuj.
Xado!!!
Li leo rku masqacamba ruyxiid stuku rge xeorf, mua vbas siohr geyrad ed bue sug nra viosyow so 45 rafege bni duort pqazp.
Bvanwe vfu giarcug uzdaqvraxlg me 66.
var counter = 10
counter = 10
Ccud sot siok djipurz.
Nar kue gex leo xcu lespapinxe wegqoet dte cki ziiyl.
Pagn hgi crava foar, yma rugguwuis ew lwuwzef, sop roumzib uz ziv xudq yyey qih, mo dye sasi upmace iwh kikr lipiq ewaxakig.
To pqu arseysamc covsawelzi uy gkujugl mvuv xje xubdonief ad kdedsab.
U hziti heek tzilws tli juxnejuuv yuwobi qxo viiq qepu, ady gu dhifo nvuktm vqu hemwobiij icjor.
Wheti wea to!!!
Pda dewkiqedc hpewizx am ycezi weezw ev Xaptik!!!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.