【C】#牛牛的一周#

牛牛的一周

https://www.nowcoder.com/practice/5394d88a8fa042d99e3b9be34e17ad71

#include <stdio.h>

int main() {
    int today;
    scanf("%d", &today);
    switch(today){
        case 1:
            printf("Monday");
            break;
        case 2:
            printf("Tuesday");
            break;
        case 3:
            printf("Wednesday");
            break;
        case 4:
            printf("Thursday");
            break;
        case 5:
            printf("Friday");
            break;
        case 6:
            printf("Saturday");
            break;
        case 7:
            printf("Sunday");
            break;
    }
    return 0;
}

全部评论

相关推荐

评论
1
收藏
分享
牛客网
牛客企业服务