Answer the question
In order to leave comments, you need to log in
Need an explanation in the Cycle?
Hello! Why is it necessary to write Step = Step + 1
for the cycle ?
Шаг=1;
Пока Шаг<=10 Цикл;
Сообщить(Шаг);
Шаг = Шаг+ 1;
КонецЦикла
Answer the question
In order to leave comments, you need to log in
For the cycle to end. Otherwise Step will always be 1 (initial value) and the Step <= 10 condition will never be met.
If you do not register, then the cycle will go on indefinitely, because. the step without increment will be equal to 1 and the condition for the end of the cycle will not be fulfilled, and when the step becomes more than 10, the cycle will be interrupted.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question