Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c# piramid yapımı
//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) { int kenarUzunlugu; kenarUzunlugu = 20; int ortaNokta = kenarUzunlugu - 1; int taban = kenarUzunlugu * 2 - 1; for (int i = 0; i < kenarUzunlugu; i++) { for (int k = 0; k < taban; k++) { if ((i + k == ortaNokta || k - i == ortaNokta)) { Console.Write("*"); } else if ((i + k >= ortaNokta && k - i <= ortaNokta)) { Console.Write("*"); } else if (i == ortaNokta) Console.Write("*"); else Console.Write(" "); } Console.WriteLine(); } } } }
run
|
edit
|
history
|
help
0
caleb
lj
FizzBuzz Solution
Classes, properties, methods, ling begining
BCD16BitTest
comb sort
sayalitrialc#
tytry yrtyrty rt tyrty
Unexpected result of virtual method
Fórum GroupBy ➡ Sum & Aggregate customers' names