Contents

조회 수 6868 댓글 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. [ajax] 샘플 코드와 한글처리에 대한 간단한 설명

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

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

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

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

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

  11. [c] 웹 메모장.. ㅋㅋ

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

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