#include <stdio.h>
int main(){
int a = 5; // 5로 초기화
int b = 3; // 3으로 초기화
int result; // 정수형 변수 result 선언
result = a * b + (++a); // 이항 연산자 *와 증가 연산자 ++ 사용
printf("결과 = %d\n", result); // 5(현재a)*3(b)=15, 15+6(증가된a)=21
int c = 6; // 정수형 변수 c 선언, 6으로 초기화
int d = 4; // 정수형 변수 d 선언, 4로 초기화
result = c * d + (c--); // 이항 연산자 *와 감소 연산자 -- 사용
printf("결과 = %d\n", result); // 6(현재c)*4(d)=24, 24+6(현재c)= 30
a = 10, b = 5, c = 6; // 변수 재할당 (a=10, b=5, c=6), 강의중 추가
result = ++a * --b + (++c);
// 전위 증가, 감소 연산자와 이항 연산자 사용
// 11 * 4 = 44, 44 + 7 = 51
printf("결과 = %d\n", result);
return 0;
}