Last active
April 17, 2022 08:41
-
-
Save Mazday21/b0245fc02a455264e536e961399d611e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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