Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Program to print pyramid using numbers
//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 rows = 10; for(int i =1; i <= rows; i++) { for(int space=1; space <= rows-i; space++) { Console.Write(" "); } for(int j=1; j <= i; j++) { Console.Write(j + " "); } for(int space=1; space <= rows-i; space++) { Console.Write(" "); } Console.WriteLine(); } } } }
run
|
edit
|
history
|
help
0
Something
ADCSXAA
Test3
12345
Convert string to int
operator
Phone number regex validator
Rotate array to the right of a given pivot
Fórum Parallel Threads ( Without Fun )
sdefuy6j87uytgraxsd