#include <stdio.h>

int main() {
    //증감 연산자 이해
    int a=5, b=5;   

    printf("전위 증감 연산자: %d\n", ++a);
    printf("후위 증감 연산자: %d\n", b++);

    // 반복문
    // int i, sum=0;
    // for(i=1;i<11;i++){
    //     sum+=i;
    //     printf("sum:%d i:%d\n", sum,i);
    // }
    // printf("합계: %d", sum);

    int i;
    for(i=1;i<10;i++){
        printf("2 x %d = %d\n", i, 2*i);
    }

    
    
}

Embed on website

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