Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Konsol Kelebek Deseni
//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) { Console.WriteLine("Çizilecek kelebek desen büyüklüğünü giriniz:"); var boyut = Convert.ToInt32(Console.ReadLine()); for (int k = 1; k <= boyut; k++) { for (int i = 1; i <= k; i++) { Console.Write("*"); } for (int i = 1; i <= (boyut * 2) - (k * 2); i++) { Console.Write(" "); } for (int i = 1; i <= k; i++) { Console.Write("*"); } Console.WriteLine(); } for (int k = boyut; k >= 1; k--) { for (int i = k; i >= 1; i--) { Console.Write("*"); } for (int i = (boyut * 2) - (k * 2); i >= 1 ; i--) { Console.Write(" "); } for (int i = k; i >= 1; i--) { Console.Write("*"); } Console.WriteLine(); } } } }
run
|
edit
|
history
|
help
0
Fórum ➡ Border of a string S with at least 3 non-overlapping solutions ( yield version ) ♦
ElaineBrown**
Метод catch b try в словарях
Write a program to count the occurrence of each distinct item in the array?
edmond@DESKTOP-M2BC2LH
walle
UINT32toHEX
implement stack
Milimeters
shell sort