DEV Community

asilbek ibragimov
asilbek ibragimov

Posted on

1 1 1 1 1

14.Loops (Advanced)

14. Loops (Advanced)

a) break va continue operatorlari qanday ishlatiladi? Misol keltiring.

b) Quyidagi kod qanday ishlaydi?

for (int i = 0; i < 5; i++)
{
    if (i == 3)
    {
        continue;
        Console.WriteLine(i);
    }
}
Enter fullscreen mode Exit fullscreen mode

Javoblari:

a) break toxtatadi;
continue davom etadi;


b) for sikli i ni 0 dan 4 gacha (5 gacha emas)
oshiradi.if (i == 3) sharti tekshiriladi.
Agar i 3 ga teng bo‘lsa, continue operatori
ishga tushadi, va bu holatda Console.WriteLine(i);

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay