Created
February 6, 2025 17:22
-
-
Save 42BOBREEK/27c813a9a030053326a2fedca42c398e 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.Text; | |
namespace DZ1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Введите, какое сообщение нужно вывести?"); | |
string message = Console.ReadLine(); | |
Console.WriteLine("Сколько раз нужно вывести это сообщение?"); | |
int timesToWrite = Convert.ToInt32(Console.ReadLine()); | |
for (int i = 0; i < timesToWrite; i++) | |
{ | |
Console.WriteLine(message); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment