Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace RepeatStrings
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] stringArr = { "Dog", "Cat", "Mouse" };
- string line = "";
- foreach(string word in stringArr)
- {
- for(int i = 0; i < word.Length; i++)
- {
- line += word;
- }
- }
- Console.WriteLine(line);
- }
- }
- }
Add Comment
Please, Sign In to add comment