Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Pascal Triangle
//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) { //Your code goes here //Console.WriteLine("Hello, world!"); Console.WriteLine("Enter no of rows for Pascal Traingle"); var rows = Console.ReadLine()(); for(int i=0; i<rows; i++) { for(int j=0; j<rows-1; j++) { Console.write(" "); } for(int j=0; j<i+1; j++) { } } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
sleep thread
n th to last element
Main
Main3-3
ICollection<T>.Add(T) - Performance Test
2.1 Basic types: Lists and Linq beauty
Trabalho
Fórum Mimicking Array Names Being Defined at Runtime
Sort string collection by length
Overloading == operator (for comparing values inside objects)
Please log in to post a comment.