Loops
Mushtariy
Posted on October 11, 2024
a) for loopning sintaksisi qanday? Misol keltiring
for(int variable = son, variable = son yoki misol; increment or decrement;)
{
-------------------------------------------------------;
}
b) while loop va do while loop o'rtasida farq nima?
while loop - bu takrorlanuvchi blokni bajarish uchun ishlatiladigan sikl operatori.
C# dasturlash tilida do while sikli (do-while loop) ma'lum bir kodni kamida bir marta bajarishni ta'minlaydi va undan keyin shart tekshiriladi.
c) Quyidagi kodning natijasini ayting.
int i = 0;
while(i < 5)
{
Console.WriteLine(i);
I++;
}
Xato chunki i I bo'lgan.
💖 💪 🙅 🚩
Mushtariy
Posted on October 11, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024