Contents

조회 수 6897 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
#include<stdio.h>

int main(){
        int cnt, sep, i, j;
        
        printf("Enter a line Number : ");
        scanf("%d", &cnt);
        sep = cnt/2;

        for(i=0; i<=sep; i++){
                for (j=0; j<sep-i; j++) printf(" ");
                for (j=0; j<2*i +1; j++) printf("*");
                printf("n");
        }
        
        for (i=0; i<sep; i++){
                for (j=0; j<=i; j++) printf(" ");
                for (j=0; j<2*(sep-i)-1; j++) printf("*");
                printf("n");
        }

        return 0;
}


?

  1. [c] 프로세스간의 통신(파이프)

  2. [c] 라인수 입력받아 마름모꼴 출력하기..

  3. [c] 간단한 순위 루틴.. (정보처리기사)

  4. [js] 수명체크 프로그램 ㅋㅋ

  5. [js] 사라지는 브라우저

  6. [ajax] 샘플 코드와 한글처리에 대한 간단한 설명

  7. [pdf] 윈도우즈 95 시스템 프로그래밍(Windows 95 system programming)

  8. [js] get방식, url이후 모두 그대로 읽어오기..

  9. [c] 단기과정[01/14] 파일 입출력

  10. [js] 숫자만 입력하게 하는 자바스크립트

  11. [c] 문자열 str_shift 예제..

  12. [c++] 프리렉(freelec) 예제 자료.. ㅋㄷ

Board Pagination Prev 1 ... 44 45 46 47 48 49 50 51 52 53 ... 71 Next
/ 71