hi im trying to create a C# program that'll display
*
**
***
****
***
**
*
type pattern but i can only get mine to look like this when i try to add on to the code
*
**
***
****
and then it stops. can anyone help on how im supposed to add the second part of the code??
// week 05 program 01
// creating a simple pattern of asterisks
using System;
using System.Text;
namespace AsterisksPattern
{
class Asterisks
{
public static void Main(string[] args)
{
// start loop from 0
for (int x = 0; x < 26; x++)
{
for (int y = 0; y <= x; y++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
} // end Main
} // end class
} // end of namespace