[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:05.40,0:00:10.31,Default,,0000,0000,0000,,Siz kodingiz takroriy ravishda ishlashi uchun takrorlanuvchi bo‘limdan foydalanganingizda,\Nkomputer qanday qilib u yetarlicha Dialogue: 0,0:00:10.31,0:00:15.86,Default,,0000,0000,0000,,marta takrorlanayotganini biladi. Bu takrorlanuvchi bo‘lim aslida kodning {\i1}loop{\i0} deb nomlanuvchi, \Nboshlang‘ich qiymatdan Dialogue: 0,0:00:15.86,0:00:22.09,Default,,0000,0000,0000,,tugovchi qiymatgacha maxsus o‘suvchi bo‘yicha \Nsanaydigan murakkabroq qismini yashirayapti. Dialogue: 0,0:00:22.09,0:00:30.58,Default,,0000,0000,0000,,Misol uchun, takrorlanuvchi uch bo‘lim 1 dan 3 gacha bittalab sanaydi.\NHar safar u sanaganda, Dialogue: 0,0:00:30.58,0:00:35.75,Default,,0000,0000,0000,,u {\i1}loop{\i0} ichidagi kodni ishlatadi.\N{\i1}For loop{\i0} {\i1}loop{\i0}ning boshida boshlang‘ich qiymatga sozlangan va har safar {\i1}loop{\i0} Dialogue: 0,0:00:35.75,0:00:40.13,Default,,0000,0000,0000,,ishlatilganda unga o‘suvchi qiymat qo‘shib boriladigan sanovchi o‘zgaruvchidan foydalangan holda Dialogue: 0,0:00:40.13,0:00:44.31,Default,,0000,0000,0000,,u necha marta ishlatilganini biladi. Dialogue: 0,0:00:44.31,0:00:51.36,Default,,0000,0000,0000,,Sanaydigan o‘zgaruvchining qiymati tugovchi qiymatdan katta \Nbo‘lishi bilanoq, {\i1}loop{\i0} ishlashdan to‘xtaydi. Dialogue: 0,0:00:51.36,0:00:55.47,Default,,0000,0000,0000,,Takrorlanuvchi bo‘lim o‘rniga haqiqiy {\i1}for loop{\i0}dan \Nfoydalanishning foydasi bu siz sanoq o‘zgaruvchisini ko‘rib turasiz va Dialogue: 0,0:00:55.47,0:01:01.72,Default,,0000,0000,0000,,undan {\i1}loop{\i0}ingizda foydalanishingiz mumkin.\NMasalan, agar menda gullar to‘plami bo‘lib, birinchisi bitta gul changi, Dialogue: 0,0:01:01.72,0:01:06.74,Default,,0000,0000,0000,,ikkinchisi ikkita gul changi va uchinchisi uchta gul changiga ega bo‘lsa,\Nmen asalariga Dialogue: 0,0:01:06.74,0:01:12.47,Default,,0000,0000,0000,,har safar gulchangi sonini ayta olaman, masalan, \Nbirinchi gulda Dialogue: 0,0:01:12.47,0:01:18.17,Default,,0000,0000,0000,,bitta, ikkinchisida ikkita va uchinchisida uchta.\NBundan tashqari {\i1}for loop{\i0}da siz Dialogue: 0,0:01:18.17,0:01:22.94,Default,,0000,0000,0000,,sanoqni birdan boshqa songa ham oshirib tura olasiz.\NSiz ehtimol ikkitadan, to‘rttadan yoki har safar o‘zgaradigan Dialogue: 0,0:01:22.94,0:01:26.78,Default,,0000,0000,0000,,biron juft miqdorda sanashingiz mumkin.