Advertisement
rukvir

HW 2_1

Feb 4th, 2025 (edited)
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2.  
  3. namespace HW_2025
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int repeatCounter = 0;
  10.             string notificationLine = "Hello world!";
  11.  
  12.             Console.WriteLine("Введите число повторов оповещения");
  13.             repeatCounter = int.Parse(Console.ReadLine());
  14.  
  15.             for (int i = 0; i < repeatCounter; i++)
  16.             {
  17.                 Console.WriteLine(notificationLine);
  18.             }
  19.  
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement