Vertaling van "for-loop" in Turks
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
The number of iterations of a given for-loop is usually known before its execution starts.
Verilen bir for-döngüsü için yineleme sayısı, yürütmeye başlamadan önce genellikle bilinir.
An alternative way of iterating through an array is using a for-loop
As we have already seen, in the construct of a for-loop we can use multiple variables at the same time.
For example, the while loop hereabove behaves the exact same way as this for-loop
Örneğin, while döngü hereabove bunun gibi aynı şekilde davranır for-loop
We do that in a similar way, except that the for-loop will start with the index of the last element and the index will decrease on each step until its value gets to 0 (inclusive).
Benzer şekilde yapılır, ancak bu sefer döngü son elemanın endeksi ile başlamalıdır ve endeks 0 (dahil olmak üzere) değerine gelene kadar her adımda azalmalıdır.
schedule(type, chunk): This is useful if the work sharing construct is a do-loop or for-loop.
schedule(type, chunk): iş paylaşımlı yapı do-loop veya for-loop ise bu kullanışlıdır.
We are iterating through the array using the for-loop, which will go array.Length times, and we will print the current element using Console.WriteLine() and a formatted string.
Bir for-döngüsü kullanarak dizi üzerinde yineleme yapıyoruz, bu yineleme array.Length defa tekrarlayacaktır ve Console.WriteLine() kullanarak geçerli elemanı biçimlendirilmiş bir dize olarak yazdırıyoruz.
As an exception, identifiers defined in the "init" part of the for-loop (the first block) are visible in all other parts of the for-loop (but not outside of the loop).
İstisna olarak, for döngüsünün "ilk" bölümünde tanımlanan tanımlayıcılar (ilk blok) for döngüsünün diğer tüm bölümlerinde (ancak döngünün dışında değil) görünür.
The condition part of the for-loop has to evaluate to exactly one value.
For-loop'un koşul kısmı, tam olarak bir değerle değerlendirilmelidir.
As we see, it is significantly simpler than the standard for-loop and therefore is very often preferred by developers because it saves writing when you need to go through all the elements of a given collection.
Görüldüğü gibi, döngü standart for-döngüsüne göre belirgin olarak daha basittir ve bu nedenle çok sıklıkla geliştiriciler tarafından tercih edilir, çünkü belirli bir topluluğun tüm elemanları üzerinden geçilmesi gerektiğinde program kodunu yazmakta hız kazandırır.
As a further example we will write a program that raises the number n to a power of m, and for this purpose we will use a for-loop
Bir başka örnek olarak, "n üssü m" sayısını hesaplayan bir program yazacaksınız ve bu amaçla bir for-döngüsü kullanacağız
Using for-in will yield two indexes, while the for-loop will yield 101 indexes, where the 99 has a value of undefined.
For-in kullanılırken iki indeks elde edilirken for-loop 101 indeks verirken, 99 değeri undefined.
That's why at each loop iteration of the first for-loop, we pass to the PrintLine(...) method, as first parameter 1, and as a second - the current value of the variable line.
Bu nedenle birinci döngünün her tekrarında PrintLine(...) metotuna ilk parametre olarak 1 ve ikinci parametre olarak - line değişkeninin değerini geçiyoruz.