Здесь представлен круг, в который вписано шесть кругов.
And one thing we could do is have a for loop.
И что мы могли бы сделать, это взять цикл for.
Sections of a for loop can be empty.
Некоторые из множеств А(х) могут быть пусты.
Alternatively, I could write a for loop
В качестве альтернативы, я мог бы написать for цикла
It is also sometimes handy to declare and initialize a variable inside a for loop.
Также иногда удобно объявить и инициализировать переменную внутри циклаfor.
Use a for loop as shown here, and you append to the list n elements, each of size of 1/n.
Используй цикл for как показано здесь, и ты добавляешь в список n элементов, каждый размером в 1/n.
So the next construct is a for loop.
Итак, следующая конструкция - цикл "for".
And, even trying to explain why do you do a for loop or what's this while loop on here, these are all conventions that help software engineering in the large when you're dealing with mistakes that people make.
И, даже не пытаясь объяснить, почему вы делаете для цикла или это что в то время как петля на здесь, все эти соглашения, которые помогают программной инженерии в целом, когда вы имеете дело с ошибками, которые люди делают.
This can be done in two lines of code, a for loop and a print statement.
Это можно сделать с помощью двух строк кода, цикла for и выражения print.
And so, often it's safer to, to use something like a for loop that has a hard limit on the number of times that you can execute.
И поэтому, иногда, более "безопасно" использовать что-либо вроде цикла "for", который имеет жестко ограниченное число повторов.
But no-one has ever managed to create music that will inspire you to find the line with the missing semi-colon, or to make the correct choice between using a for loop or a while loop.
Но никому еще не удавалось создать музыку, которая вдохновит вас найти строку с отсутствующей точкой с запятой или сделать правильный выбор между использованием цикла for или цикла while.
break is used to exit a for loop or a while loop, whereas continue is used to skip the current block, and return to the "for" or "while" statement.
Ьгёак используется для выхода из цикла for или цикла while, тогда как continue используется для пропуска текущего блока и возврата к выражению "for" или "while".
For instance, the statement "for(;)" isn't correct syntax because a for loop always needs to have three parts.
Например, выражение for(;) синтаксически не правильно, потому что цикл всегда должен иметь три части.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.