VIzlo

Base 1

Mar 1st, 2024 (edited)
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | Gaming | 0 0
  1. using System;
  2.  
  3. internal class Program
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         int numberIterations;
  8.  
  9.         Console.Write("Введите необходимое количество итераций цикла: ");
  10.         numberIterations = int.Parse(Console.ReadLine());
  11.  
  12.         for (int i = 1; i <= numberIterations; i++)
  13.         {
  14.             Console.WriteLine($"Итерация #{i}");
  15.         }
  16.  
  17.         Console.WriteLine("Перечисление окончено");
  18.         Console.ReadLine();
  19.     }
  20. }
Tags: ijunior
Advertisement
Add Comment
Please, Sign In to add comment