题解 | #牛牛的一周#
牛牛的一周
https://www.nowcoder.com/practice/5394d88a8fa042d99e3b9be34e17ad71
#include <stdio.h> int main() { int date = 0;//日期 scanf("%d", &date);//输入星期几 switch(date) { case 1: printf("Monday\n"); break; case 2: printf("Tuesday\n"); break; case 3: printf("Wednesday\n"); break; case 4: printf("Thursday\n"); break; case 5: printf("Friday\n"); break; case 6: printf("Saturday\n"); break; case 7: printf("Sunday\n"); break; default: break; } return 0; }
C语言基础 文章被收录于专栏
里面较为详细的介绍了c语言的相关用法和有关题目。