#include <stdio.h>

int main() {
    int x = 7, y = 12;
    // 문제 1) 아래 식에서 연산 순서를 적으시오
    printf("%d\n", (x + y) * 2 <= 50 || 40 - y == x);
    //                                        
 
    // 문제 2) 아래 식에서 연산 순서를 적으시오
    printf("%d\n", x + y >= 10 || 10 < 5 * 3 && x == 5);
    //             

    // 문제3) 정수 n을 입력받고 n이 짝수이면 "even", 홀수이면 "odd"를 출력하는 프로그램을 삼항 연산자로 작성하시오

    
    // 문제4) 세 정수 a, b, c가 주어질 때, 가장 큰 수를 출력하는 프로그램을 삼항 연산자로 작성하시오


    
    return 0;
}

Embed on website

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