본문 바로가기
Algorithm/JUNGOL

C언어, JUNGOL 9001 ~ 9010

by OdOp 관리자 2023. 10. 6.
SMALL

jungol 9001부터 jungol 9010까지 c언어로 작성된 코드입니다.

참고해 주시면 좋을 것 같습니다. 

jungol 9001

#include <stdio.h>

int main(void)
{
    printf("첫 번째 프로그램입니다.");
    return 0;
}

 

jungol 9002

#include <stdio.h>

int main(void)
{
    printf("두 번째 프로그램입니다. 한 줄에 여러 문장을 출력합니다.");
    return 0;
}

 

jungol 9003

#include <stdio.h>

int main(void)
{
    printf("세 번째 프로그램입니다.\n줄을 바꾸어 출력합니다.\n여기까지 출력하고\n줄을 바꿉니다.");
    return 0;
}

 

jungol 9004

#include <stdio.h>

int main(void)
{
    printf("   @@\n  @  @\n @    @\n@      @\n @    @\n  @  @\n   @@");
    return 0;
}

 

jungol 9005

#include <stdio.h>

int main(void)
{
    printf("서식 문자로 출력하는 방법입니다.\n이것은 문자열을 나타냅니다.");
    return 0;
}

 

jungol 9006

#include <stdio.h>

int main(void)
{
    printf("수를 출력할 때는 따옴표를 생략합니다.\n123\n6.500000");
    return 0;
}

 

jungol 9007

#include<stdio.h>

int main(void)
{
    printf("%s\n", "수식을 출력하면 계산 결과가 출력됩니다.");
    printf("%d + %d = 15\n", 10, 5, 10+5);
    printf("내 생일은 %d년 %d월 %d일 입니다.\n", 2005, 6, 17);
    return 0;
}

 

jungol 9008

#include<stdio.h>

int main(void)
{
    printf(" subject score\n");
    printf("==============\n");
    printf("  korean    90\n");
    printf(" english   100\n");
    printf("computer    80\n");
    return 0;
}

 

jungol 9009

#include<stdio.h>

int main(void)
{
    int a = 10;
    char b = 'A';
    printf("a = %d\n", a);
    printf("b = %c", b);
    return 0;
}

 

jungol 9010

#include <stdio.h>

int main(void)
{
    int a = 10, b = 20;
    printf("%d %d", b, a);
    return 0;
}
LIST

'Algorithm > JUNGOL' 카테고리의 다른 글

C언어, JUNGOL 111 ~ 120  (2) 2023.11.04
C언어, JUNGOL 511 ~ 520  (0) 2023.11.03
C언어, JUNGOL 9011 ~ 9020  (2) 2023.11.02
C언어, JUNGOL 101 ~ 110  (0) 2023.11.01
C언어, JUNGOL 501 ~ 510  (0) 2023.10.31