/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
int main()
{
int a = 5; // 5로 초기화
int b = 3; // 3으로 초기화
int result;
result = a * b + (++a); // 이항 연산자 *와 증가 연산자 ++ 사용
printf("결과 = %d\n", result);
int c = 6; // 6으로 초기화
int d = 4; // 4로 초기화
result = c*d + (c--); // 이항 연산자 *와 감소 연산자 -- 사용
printf("결과 = %d\n", result);
a=10, b=5, c=6;
result = ++a* --b +(++c);
printf("결과 = %d\n", result);
return 0;
}