Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
printing * in pyramid shape
//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) { for(int i=1;i<=10;i++) { if(i>5) { for(int l=i-5;l>=1;l--) { Console.Write(" "); } for(int m=9-i;m>=0;m--) { Console.Write(" *"); } Console.WriteLine(); } else { for(int j=5-i;j>=0;j--) { Console.Write(" "); } for(int k=i;k>=1;k--) { Console.Write("* "); } Console.WriteLine(); } } } } }
run
|
edit
|
history
|
help
1
Delegaty Func
Code Challenege
tool
Bg
Classes-and-Structures.cs
Math 10.9 edited makeMultQ
Number of Digits in a Number
lookup test
Everyone can sen ,only me can edi
C# virtual dispose