#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+10);
    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: