Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SimpleCycle
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string userInputMessage;
- int userInputCountRepeat;
- Console.Write("Введите ваш текст: ");
- userInputMessage = Console.ReadLine();
- Console.Write("Введите количество повторов для вашего текста: ");
- userInputCountRepeat = Convert.ToInt32(Console.ReadLine());
- for (int i = 0; userInputCountRepeat > i; userInputCountRepeat--)
- {
- Console.WriteLine(userInputMessage);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement