Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Putting In-Between Symbols
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here // Console.WriteLine("Hello, world!"); char mainChar = '|'; char interChar = '-'; List<char> myMain = new List<char>(); List<char> myInter = new List<char>(); int max = 5; for (int x=0; x<max; x++) { myMain.Add(mainChar); if (x<max-1) myInter.Add(interChar); } for (int x=0; x<max; x++) { Console.Write(myMain[x]); if (x<max-1) Console.Write(myInter[x]); } } } }
run
|
edit
|
history
|
help
0
xddd
Examples of JS-Like higher-order functions in C#
Huy kaka
Remove Duplicates - Asif Ali
Random IF OR
ShakerSort
monopoly11
Whats Wrong in Here ?
V5
sdfghnjmkuyhtgrfed