12Vitaly

7

Aug 14th, 2020 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace egor
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string userInput;
  14.             int amountInformationEntered;
  15.  
  16.             Console.WriteLine("Что вы хотите вывести в консоль?");
  17.             userInput = Console.ReadLine();
  18.             Console.Clear();
  19.             Console.WriteLine("сколько раз вы хотите вывести \"" + userInput + "\"?");
  20.             amountInformationEntered = Convert.ToInt32(Console.ReadLine());
  21.             Console.Clear();
  22.  
  23.             while (amountInformationEntered-- > 0)
  24.             {
  25.                 Console.WriteLine(userInput);
  26.             }
  27.  
  28.             Console.ReadKey();
  29.         }
  30.     }
  31. }
  32.  
Add Comment
Please, Sign In to add comment