using System; Â
using System.Collections.Generic; Â
using System.Linq;
using System.Text;
namespace Hello_Word Â
{
class ProgramÂ
{
static void Main(string[] args)
{
int val=5;
int i, j, k ;Â
for (i = 1; i <= val; i++) Â
{
for (j = 1; j <= val-i; j++) Â
{
}
for (k = 1; k <= i; k++) Â
{
Console.Write("*");Â Â
}
Console.WriteLine("");Â Â
}
Console.ReadLine();Â Â
}
}
}
Output:
*
**
***
****
*****