Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- internal class Program
- {
- static void Main(string[] args)
- {
- int numberIterations;
- Console.Write("Введите необходимое количество итераций цикла: ");
- numberIterations = int.Parse(Console.ReadLine());
- for (int i = 1; i <= numberIterations; i++)
- {
- Console.WriteLine($"Итерация #{i}");
- }
- Console.WriteLine("Перечисление окончено");
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment