์ƒ์„ธ ์ปจํ…์ธ 

๋ณธ๋ฌธ ์ œ๋ชฉ

[๋ฐฑ์ค€(BOJ)] 2440๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 3 (์ž…์ถœ๋ ฅ, C++)

PROGRAMMING/Algorithm

by koharin 2021. 2. 11. 13:27

๋ณธ๋ฌธ

728x90
๋ฐ˜์‘ํ˜•

๐Ÿ’ป C++ ์ œ์ถœ์ฝ”๋“œ


#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("*");
        printf("\n");
    }
}

 

๐Ÿ‘ ๊ฒฐ๊ณผ


728x90
๋ฐ˜์‘ํ˜•

๊ด€๋ จ๊ธ€ ๋”๋ณด๊ธฐ