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
Generic operator test
T
BreakNum3
4. Inheritance
d
Test
Vídeo01 - Classe e Método
Math 5.8
C# Events and Delegates example
array reverse