#include <stdio.h>

int main() {
    printf("키를 입력해주세요\n");
    int height;
    scanf("%d", &height);
    if(height>=110){
        printf("모든 놀이기구 탑승 가능\n");
    }
    else if(height>=100){
        printf("바이킹 탑승 불가\n");
    }
    else{
        printf("바이킹, 회전목마 탑승 불가\n");
    }









    

    int number;

    printf("수영장은 1, 놀이기구는 2를 선택하세요:\n");
    scanf("%d", &number);

    if(number == 1) {
        printf("실내 수영장은 1, 실외 수영장은 2를 선택하세요:\n");
        scanf("%d", &number);
    
        if(number == 1) {
            printf("실내 수영장을 먼저 선택하셨네요!\n");
        }
        else if(number == 2) {
            printf("실외 수영장을 먼저 선택하셨네요!\n");
        }
    }

    if(number == 2) {
        printf("바이킹은 1, 관람차는 2를 선택하세요:\n");
        scanf("%d", &number);
    
        if(number == 1) {
            printf("놀이기구에서 바이킹을 먼저 선택하셨네요!\n");
        }
        else if(number == 2) {
            printf("놀이기구에서 관람차를 먼저 선택하셨네요!\n");
        }
    }









    int a, b, c;
    int max= 0;
    printf("자연수 세개를 입력하세요\n");
    scanf("%d %d %d", &a, &b, &c);
    if(a>b){
        max = a;
        if(max < c){
            max = c;
        }
    }
    else{
        max = b;
        if(max < c){
            max = c;
        }
    }
    printf("가장 큰 수는 %d 입니다.", max);
    return 0;
}

Embed on website

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