Created
August 29, 2025 19:02
-
-
Save Attosius/1d1b5b6d1d33eaa9b25727dcf21d0d54 to your computer and use it in GitHub Desktop.
ДЗ: Освоение циклов
This file contains hidden or 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; | |
namespace IJuniorTasks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write($"Введите текст для повтора: "); | |
var text = Console.ReadLine(); | |
Console.Write($"Введите количество повторов: "); | |
var repeatCount = Convert.ToInt32(Console.ReadLine()); | |
for (int i = 0; i < repeatCount; i++) | |
{ | |
Console.WriteLine(text); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment