Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- namespace RepeatString
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- string[] words = Console.ReadLine().Split();
- StringBuilder sb = new StringBuilder();
- foreach (var item in words)
- {
- for (int i = 1; i <=item.Length ; i++)
- {
- sb.Append(item);
- }
- }
- Console.WriteLine(sb);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement