🔧 for Loop
Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to
a) for loopda continue operatorining ishlatilishini
tushuntiring.
continue operatori for loopda ishlatilganda,
bu shuni anglatadiki, continuedan keyingi kod
ishlatilmaydi va loop keyingi qiymatni olib
ishlashni davom ettiradi.
**b) Quyidagi kodning natijasini ayting: **
for(int i = 0; i < 5; i++)
{
if(i == 2)
{
continue;
}
Console.WriteLine(i);
}
*Javob: * 0, 1, 3, 4, 5.
c) for loopdan foydalangan holda,1 dan 10 gacha bo'lgan juft sonlarni
ekranga chiqaruvchi kod yozing.
class Program
{
static void Main()
{
for (int i = 1; i <= 10; i++)
{
if (i % 2 == 0)
{
Console.WriteLine(i);
}
}
}
}
🔧 Day 16 - Slicing,for loop and nested loop
📈 19.87 Punkte
🔧 Programmierung
🎥 How Do I Use Loop with Rebecca
📈 9.94 Punkte
🎥 Video | Youtube
🔧 Event Loop javascript
📈 9.94 Punkte
🔧 Programmierung
🔧 Loop Unrolling in JavaScript?
📈 9.94 Punkte
🔧 Programmierung
🔧 Understanding the Event Loop in JavaScript
📈 9.94 Punkte
🔧 Programmierung
🔧 THE EVENT LOOP
📈 9.94 Punkte
🔧 Programmierung
🐧 While Loop Sum of Numbers in C++
📈 9.94 Punkte
🐧 Linux Tipps