x2

#include
int main ()
{
    int days;
    
    printf("输入一个整数:\n");
    scanf("%d",&days);
    
    if(days>=1&&days<=5)
        printf("workdays,fighting\n");
    else if(days==6||days==7)
        printf("weekend,relax~\n");
    else
        printf("Ooops,not in 1~7\n");
        
        return 0;
}

x2_第1张图片x2_第2张图片x2_第3张图片

你可能感兴趣的:(x2)