Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string message;
- int repeatCount;
- Console.Write("Введите сообщение: ");
- message = Console.ReadLine();
- Console.Write("Сколько раз вывести сообщение? ");
- repeatCount = Convert.ToInt32(Console.ReadLine());
- for (int i = 0; i < repeatCount; i++)
- {
- Console.WriteLine(message);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment