๐Ÿ• Baaaaaarking/0x02๊ฐ• - ๊ธฐ์ดˆ ์ฝ”๋“œ ์ž‘์„ฑ ์š”๋ น II

[BOJ][C++] ๋ฐฑ์ค€ 2440๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 3

์„ ๋‹ฌ 2023. 5. 18. 23:53
๋ฐ˜์‘ํ˜•

https://www.acmicpc.net/problem/2440

 

2440๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 3

์ฒซ์งธ ์ค„์—๋Š” ๋ณ„ N๊ฐœ, ๋‘˜์งธ ์ค„์—๋Š” ๋ณ„ N-1๊ฐœ, ..., N๋ฒˆ์งธ ์ค„์—๋Š” ๋ณ„ 1๊ฐœ๋ฅผ ์ฐ๋Š” ๋ฌธ์ œ

www.acmicpc.net

 

#include <iostream>

using namespace std;

int main() {
    int n;
    cin >> n;
    for(int i=n; i>0; i--) {
        for(int j=0; j<i; j++)
            cout << "*";
        cout << "\n";
    }
    return 0;
}
๋ฐ˜์‘ํ˜•