Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace SoftUni
- {
- class Program
- {
- static string RepeatString(string str, int count)
- {
- string repeatedString = string.Empty;
- for (int i = 0; i < count; i++)
- {
- repeatedString += str;
- }
- return repeatedString;
- }
- static void Main(string[] args)
- {
- string txt = Console.ReadLine();
- int rep = int.Parse(Console.ReadLine());
- Console.WriteLine(RepeatString(txt, rep));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement