Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Archives
Today
Total
관리 메뉴

Everything has an expiration date

BAEKJOON - 2438 : 별 찍기 - 1 본문

BAEKJOON - challenge/반복문

BAEKJOON - 2438 : 별 찍기 - 1

Jelly-fish 2023. 9. 22. 13:28
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;


public class Main
{
	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int countStar = Integer.parseInt(br.readLine());


		for (int j = 0; j < countStar; j++)
		{
			for (int i = 0; i < j + 1 ; i++)
			{
				System.out.print("*");
			}
			
			System.out.println();
		}
		
	}
}