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
sss
12
Find Highest,Lowest and average using two dimensional arrays
Class Objects
Math 5.83b
Operators
Intuit // C# // listing_4.3 (StreamWriter // @"c:\Temp\output.txt")
prime number experiment
Sri 19 Sept
Recur5