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 Метод_за_повече_от_един_символ_във_new_string
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(new string("text", 26));
- }
- private static string RepeatString(string textToRepeat, int count)
- {
- StringBuilder result = new StringBuilder();
- for (int i = 0; i < count; i++)
- {
- result.Append(textToRepeat);
- }
- return result.ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement