То есть эти два кода дают один и тот же результат:
ЗА:
Код: Выделить всё
for (int i = 0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/19871305/what-is-faster-and-best-for-with-if-and-return-or-while[/url]Код: Выделить всё
for (int i = 0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/19871305/what-is-faster-and-best-for-with-if-and-return-or-while[/url]