Skip to content

Commit

Permalink
이슈 #328에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent ba40f74 commit d0bd690
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Programmers/직각삼각형_출력하기.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>

using namespace std;

int main(void) {
int n;
cin >> n;

for (int i = 0; i < n; i++) {
for (int j = 0; j <= i; j++) {
cout << "*";
}
cout << "\n";
}

return 0;
}

0 comments on commit d0bd690

Please sign in to comment.