#include <stdio.h>

int main() {
    int a; //변수 선언
    a = 10+5; //변수 초기화
    int b = 20; //변수 선언 및 초기화

    /*
    여러 줄을 주석 처리
    */

    float c = 1.1;

    printf("%d\n", a);
    printf("%.1f\n", c);

    const int d = 2026; //상수
    printf("%d\n", d);

    char ch = 'A';
    printf("%c\n", ch);

    char str[10] = "apple";
    printf("%s\n", str);

    printf("10 + 10 = %d\n", 10+10);
    printf("%d + %d = %d\t", 3, 7, 3+7);
    printf("%d %f %c\n", 10, 10.0, 'A');

    









    
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: