Skip to content

Instantly share code, notes, and snippets.

@Mazday21
Last active April 17, 2022 08:41
Show Gist options
  • Save Mazday21/b0245fc02a455264e536e961399d611e to your computer and use it in GitHub Desktop.
Save Mazday21/b0245fc02a455264e536e961399d611e to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введите сообщение, которое будет выводится:");
string message = Console.ReadLine();
Console.WriteLine("Введите количество повторений вывода:");
int repetitions = Convert.ToInt32(Console.ReadLine());
for(int i = 0; i < repetitions; i++)
{
Console.WriteLine(message);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment