Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C Triangle
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 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 int spaces = 3; int m = 1; int secondWall = 0; //Writes first wall for (int i = 0; i<4; i++) { Console.Write(Spaces(spaces)); Console.Write("\u00a9"); if (i !=3) Console.Write(Spaces(secondWall)); if (i!= 0 && i!=3) Console.Write("\u00a9"); if (i!=3) Console.WriteLine(); spaces--; if (i == 0) { secondWall++; } else if (i == 1) { secondWall = secondWall + 2; } } Console.WriteLine(" \u00a9 \u00a9 \u00a9 "); } static string Spaces(int n) { return new String(' ', n); } } }
run
|
edit
|
history
|
help
0
Testing list
6.2 Parallelism: locks
The Fisher–Yates shuffle array extension method
book iequatable
I know it's a bit combersome, but it's my first attempt.
Number loop
D13
Unicode Braille Patterns.
Сортировка массива
Palindrome Number