Advertisement
lovelyvook

Unit_07

Mar 30th, 2024 (edited)
799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 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 Ijunior
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string userInput;
  14.             int number;
  15.  
  16.             Console.Write("Введите фразу: ");
  17.             userInput = Console.ReadLine();
  18.  
  19.             Console.Write("Введите количество повторений: ");
  20.             number = Convert.ToInt32(Console.ReadLine());
  21.  
  22.             for (int i = 0; i < number; i++)
  23.             {
  24.                 Console.WriteLine(userInput);
  25.             }
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement