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 HomeWorck_8_2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Сколько раз нужно вывести строку информации?");
- int check = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Какую строку вы хотите повторить?");
- string strOutput = Console.ReadLine();
- for(int counter = 1; counter < check; counter++)
- {
- Console.WriteLine(strOutput);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement