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 egor
- {
- class Program
- {
- static void Main(string[] args)
- {
- string userInput;
- int amountInformationEntered;
- Console.WriteLine("Что вы хотите вывести в консоль?");
- userInput = Console.ReadLine();
- Console.Clear();
- Console.WriteLine("сколько раз вы хотите вывести \"" + userInput + "\"?");
- amountInformationEntered = Convert.ToInt32(Console.ReadLine());
- Console.Clear();
- while (amountInformationEntered-- > 0)
- {
- Console.WriteLine(userInput);
- }
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment