Skip to content

Instantly share code, notes, and snippets.

@MagSosiq
Last active May 14, 2024 14:23
Show Gist options
  • Save MagSosiq/5f2766057adaeafd70571279fde19734 to your computer and use it in GitHub Desktop.
Save MagSosiq/5f2766057adaeafd70571279fde19734 to your computer and use it in GitHub Desktop.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HW1
{
internal class Program
{
static void Main(string[] args)
{
Console.InputEncoding = Encoding.Unicode;
Console.OutputEncoding = Encoding.Unicode;
Console.Write("Введите выводимое сообщение: ");
string message = Console.ReadLine();
Console.Write("Введите количество выводов сообщения: ");
int quantity = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < quantity; i++)
{
Console.WriteLine(message);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment