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 N = Integer.parseInt(br.readLine());
for(int i=1;i<=N;i++){
for(int j=1;j<=i;j++){
System.out.printf("*");
}
System.out.printf("\n");
}
br.close();
}
}
'Algorithm > [BOJ] - JAVA' 카테고리의 다른 글
[백준] 10871 : X보다 작은 수 JAVA 풀이 (0) | 2022.05.10 |
---|---|
[백준] 2439 : 별 찍기 - 2 JAVA 풀이 (0) | 2022.05.10 |
[백준] 11022 : A+B-8 JAVA 풀이 (0) | 2022.05.10 |
[백준] 11021 : A+B-7 JAVA 풀이 (0) | 2022.05.10 |
[백준] 2742 : 기찍 N JAVA 풀이 (0) | 2022.05.10 |