Algorithm/Acmicpc.net (백준) [C언어] 백준 : 별 찍기 -7 (2444번) - #include <stdio.h> int main() { int n; scanf("%d", &n); for(int i = 0; i < n; i++){ for(int j = n-1; j > i; j--){ printf(" "); } for(int j = 0; j < 2*i+1; j++){ printf("*"); } printf("\n"); } for(int i = 1; i < n; i++){ for(int j = 0; j < i; j++){ printf(" "); } for(int j = 2*(n-i)-1; j > 0; j--){ printf("*"); } printf("\n"); } } 공유하기 게시글 관리 tb4nch0r's Blog 저작자표시 변경금지 (새창열림) 'Algorithm > Acmicpc.net (백준)' 카테고리의 다른 글 [C언어] 백준 : 럭비클럽 (2083번) (1) 2024.01.30 [python] 백준 : 별 찍기 - 7 (2444번) (0) 2024.01.24 [C언어] 백준 : 기찍 N (2742번) (1) 2024.01.24 [python] 백준 : 기찍 N (2742번) (0) 2024.01.24 [python] 백준 : 럭비클럽 (2083번) (0) 2024.01.24 Contents 당신이 좋아할만한 콘텐츠 [C언어] 백준 : 럭비클럽 (2083번) 2024.01.30 [python] 백준 : 별 찍기 - 7 (2444번) 2024.01.24 [C언어] 백준 : 기찍 N (2742번) 2024.01.24 [python] 백준 : 기찍 N (2742번) 2024.01.24 댓글 0 + 이전 댓글 더보기