Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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 Метод_за_повече_от_един_символ_във_new_string
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Console.WriteLine(new string("text", 26));
  14. }
  15. private static string RepeatString(string textToRepeat, int count)
  16. {
  17. StringBuilder result = new StringBuilder();
  18. for (int i = 0; i < count; i++)
  19. {
  20. result.Append(textToRepeat);
  21. }
  22.  
  23. return result.ToString();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement