* *** ***** ******* Updated As you can see below the code for simple pyramid has two for loop nested in each other. So for each row it enter, it increment the counter and draw the star against forming a pyramid like figure. You can use different special counter, play with the loop and enjoy the coding. Simple Pyramid in Csharp class Program { static void Main( string [] args) { int row, col = 0, n = 5; for (row = 0; row <= n; row++) { ...
A blog about software and web app learning/coding, revolving around .net, JavaScript, sql, html, css and whatever technical I found in this beautiful world.