Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Pyramid using C#
//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; using System.Threading.Tasks; namespace Rextester { public class Program { static void DrawPyramid(int n) { for (int i=1; i<=n; i++) { for (int j=i; j<=n; j++) { Console.Write(" "); } for (int k=1; k<=2*i-1; k++) { Console.Write("^"+""); } Console.WriteLine(); } } public static void Main(string[] args) { DrawPyramid(25); } } }
run
|
edit
|
history
|
help
0
SAF Mid Terms
Ty
xml
project euler 18
loop exmple
Дамир
Main5.2
All
my first
Aggregate Exception