사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
2439번 별 찍기 -2
GamJia 2023. 3. 22. 09:10
단계별로 풀어보기 - 반복문 - 10단계
https://www.acmicpc.net/problem/2439
#include <iostream> using namespace std; int main() { int N; cin>>N; for(int i=1;i<=N;i++) { for(int j=0;j<N-i;j++) { cout<<" "; } for(int k=1;k<=i;k++) { cout<<"*"; } cout<<endl; } return 0; }