/* C# program to print the following pattern
*
**
***
****
***** */
namespace Patterns
{
class Program
{
static void Main(string[] args)
{
int i, j;
for (i = 1; i <= 5; i++)
{
for (j = 1; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}
No comments:
Post a Comment