언어, 알고리즘 공부/백준2020. 3. 17. 21:49[백준 알고리즘] 2523번 별 찍기 - 13 (Python, Java)
N = int(input()) for i in range(1, N+1): print("*"*i) for i in reversed(range(N)): print("*"*i) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; 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