본문 바로가기

programmers

[c programmers] test 35

2023.01.10

<Coding Test> 14 day

 

#35 직각삼각형 출력하기

 

#include <stdio.h>

int main(void) {
    int n;
    scanf("%d", &n);
 

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

    
        
    return 0;
}

코딩테스트 연습 - 직각삼각형 출력하기 | 프로그래머스 스쿨 (programmers.co.kr)

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

 

'programmers' 카테고리의 다른 글

[c programmers] test 38  (0) 2023.01.12
[c programmers] test 36-37  (0) 2023.01.11
[c programmers] test 34  (0) 2023.01.09
[c programmers] test 32-33  (0) 2023.01.06
[c programmers] test 30-31  (0) 2023.01.05