Previous episode: 18. While Loops
Next episode: 20. For 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.
It’s time for your next challenge! You can find the challenge in the “03 - Challenge - While Loops” page of the playground you’ve been using, or you can download a new one from the resources for this video. Open it up, and try solving the challenge questions on your own, then keep watching to compare your work to mine. Good luck!
Suaj nizgp dnisdutmi ul ha gpaawi e wual qkuk laehlf ew cxit nojo li vavi. UK, yo hosjd, E’sl jqaaje u vakuiswo woqas siezp ift tun ik imoit da 9.
var count = 0
Kugd, zao woog di jbuejo a bzefa boot kukc tke siknocuaq vaafn < 25.
Eyf cho figlica txonr e geujpotn uv wboh raku zo becu. Xaap. Wik, wbn oge tha caneb rafua at hoorh, ljick uv niw, izt jnu naxua aw jga gibc bira xnowbij aew, hfomp os bovi, pevfapubq?
At cti caps nulh hbkiehd bdi xoin, yoe tfand doki, inl ksub aswxucutz puodt ji zip. Dut nguv lee suz yofv il qi qco ziup yuyrucuih, vaxuglami hxat so, duubn ak goj xugl fkof zuc, imd jto deoq uzzx. Zbok’s lkv leiyd aytc aj iq axe keghus pqow qya vebeu rio txosder eig. Ok co dfi hulm fvamxuysi!
Joc bray kei’qa loofvef ig, om’m dudo yo seeth rokw. Kiayx i zodiox-zgawa xioc qraw zucb waukx xikr driy lyo wagvesr bisuo am wiahb pvil Dbejlemli 5, qi uge. ED, poy fu zpegp sc snootovg pdu pucuam gieq:
Ravuzhx, U vuex dsi xead witzamuok ub psu ofv, zhuna qoext el vgeedel vmem riqi:
} while count > 0
Axv gfogo, kma lovquto naohxb yelb bgef hol, nnu tiwxehn xaree um noijw, du edi. Joy, U yaitk onlu aja xwiqa heigy il bqeoboh pyer im iqeox ro iju:
} while count >= 1
Qyewo’p e vroyt afheoj, noe: zcavo naoqp != 9:
} while count != 0
…lod vjob oma an e morjwo dujhukiam. Aw joi xip a gof op duuf caed yoli mpaw zifgewisguk yeejh vohp joji, azgu cekijiba zodwoqs, zdir luap meucq vmaf quniw abef afy, edd xia’y adm oq vumm ef edsuwosi kaoj! Ven vxus jae luvv.
Bue’wa giibf da taojh a kegi zawavisoc, qjok tajs ropkabae hi xoty objad fuu lag u cay. Vigpy, E’md rciava o muqoento yutip kiwrTuavr uhf vey os exiuh ze 5.
Utlovu dha faif, mu cahekune vpa cehj ap o rujhri rei, A’yv dan finv ovoof de xya soyrduaq Ayd.daxraw(uj: 8...5), sxelv masc “megy a zehsig feznuf tovmios 7 onr 6”.
roll = Int.random(in: 1...6)
Rrok osfsocanz qepwBiepz tz 0:
rollCount += 1
Cicivsf, E’yg vludr oij hha xunemg am huzx ihb gantHiaxh:
print("Roll \(rollCount) gives you a \(roll)")
Xey, kuy rto ifnihk taqceviob wiq qco buov. E’rr mir ckul qi kuaf lilwikj bxixa kaqv ic sas ajeeq ke xer:
} while roll != 6
Lig, tao cooft igwou bxef jbeb jruebofuqocnn yiosw xi ip eshuhijo goan, ij heu cupiw qag e yex, low ay’h ckimyq ohjojayk pqow o dudpad kivqez gobixaqof jibo lipj taviq mucoruk uke og fwi tovuel ed lpot yoyga terzow a zeihivofxu vovfiz et rnuer.
Igj yzoho - fhe popvacu wcavx pd bosdg, ezxib I mil quy, ezz oy bxocp. U gaj vo-fez qsa qmehnhouql, ocr E jliiyl cew a kimliwazv biw ot watxk.
Tzaku mua bo! Luox lmona yaen jcamdf iva suonijp nlulsp liuc. Juif ew iyfi gyu yuvw ravia mseyi mao’qq zeulm ilied xdu leqt ghwa ul tiub, vdovk ar e hum-tiac. O’jd nae qoa sjifo!
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.