Rohyoohyun / C

0 stars 0 forks source link

2439 별 찍기 -2 #13

Open Rohyoohyun opened 3 months ago

Rohyoohyun commented 3 months ago
#include <stdio.h>
int main(){
    int n;
    scanf("%d", &n);
    for(int i=0; i<n; i++, puts("")){
        for(int k=n-1; k>i; k--)
            printf(" ");
        for(int j=0; j<=i; j++)
            printf("*");
    }
    return 0;
}