Advertisement
rukvir

HW 7_2

Dec 8th, 2021
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 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 HomeWorck_7_2
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Сколько раз нужно вывести строку информации?");
  14.             int pinCount = Convert.ToInt32(Console.ReadLine());
  15.             Console.WriteLine("Какую строку вы хотите повторить?");
  16.             string stringOutput = Console.ReadLine();
  17.  
  18.             for(int counter = 1; counter < pinCount; counter++)
  19.             {
  20.                 Console.WriteLine(stringOutput);
  21.             }
  22.  
  23.            
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement