반응형
SMALL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Study02
{
class Program
{
static void Main(string[] args)
{
for (int i = 0; i < 5; i++)
{
for (int h = 0; h < 5 - (i + 1); h++)
{
Console.Write(" ");
}
for (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
}
}
}
반응형
LIST
'C# > 수업 내용' 카테고리의 다른 글
무기 습득 횟수 (메서드 인자 사용) (0) | 2023.01.03 |
---|---|
매서드 사용법 (0) | 2023.01.03 |
별찍기 (for문) (0) | 2023.01.03 |
구구단 자동으로 9단 까지 (for 문) (0) | 2023.01.03 |
모든 숫자 더하기 (for문) (0) | 2023.01.03 |