ex2

#include

int main()
{
    int days;

    printf("please input:\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("Oops,not in 1~7\n");

    getchar();
    return 0;
}

 

你可能感兴趣的:(ex2)