1015-星期几

代码纯属原创,如有雷同,纯属巧合!

#include 
int main(void)
{
	int a;
	scanf("%d",&a);
	switch(a)
	{
		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;
}

你可能感兴趣的:(NOI,NOI官网题库)