/* * Author: Nikolay Dvurechensky * Site: https://www.dvurechensky.pro/ * Gmail: dvurechenskysoft@gmail.com * Last Updated: 12 мая 2025 02:47:11 * Version: 1.0.3 */ using System; /* * Цикл do while * Всегда выполняется один раз * даже если условие цикла не выполянется */ class Program { static void Main() { int count = 5; while (count < 5) { count++; Console.WriteLine($"{count} Действие"); } do { count++; Console.WriteLine($"{count} Действие"); } while (count < 5); Console.ReadKey(); } }