using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Study0121
{
class Program
{
static void Main(string[] args)
{
for(int i = 0; i<5; i++)
{
for(int j=0; j<=i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Study0121
{
class Program
{
static void Main(string[] args)
{
for(int i = 0; i<5; i++)
{
for(int j=0; j<=5-i; j++)
{
Console.Write(" ");
}
for(int k=0; k<=i; k++) //k<=i여야 첫 줄에 *공백이 안 나온다
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}