Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
5. Generics
Lambdas
Operator Overloading Example (+, -, *, /, ==, !=)
Intuit // C# // listing_4.6 (if_then_else // Shooting on the target)
Milimeters
Some linq examples
comparer implementation
checkvalidtraingle
Par ou ímpar input
Trent Butler All Dead Example
stackse - search stackoverflow differently
Please log in to post a comment.