/*假设今天是星期天,编写程序,求1、2、3、4、5、6天后 是星期几(用英文)? */ #include <stdio.h> main() { char 【1】; int xh; scanf("%d",【2】); printf("%d天后是%s",xh,【3】); }
/*假设今天是星期天,编写程序,求1、2、3、4、5、6天后 是星期几(用英文)? */ #include <stdio.h> main() { char ab[7][10]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"}; int xh; scanf("%d",&xh); printf("%d天后是%s",xh,ab[xh%7-1]); }
标签:xh,ab,int,C语言,char,天后,填空,周几 From: https://www.cnblogs.com/xkdn/p/17100361.html