#include <stdio.h>

int main() {

    int n;
    scanf("%d",&n);


    if(n>=1 && n<=3)
    {
        if(n==1)
            printf("가위");
        else if(n==2)
            printf("바위");
        else
            printf("보");
    }
    else 
        printf("1~3의 값을 입력하세요");

    return 0;
}

Embed on website

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