题目内容
输出程序运行结果。#include main(){enumweek{Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday};enum week day;int x;printf("please input a num:");scanf("%d",&x);day=(enum week)x;printf("Today is :");switch(day){case Sunday:printf("Sunday\n");break;case Monday: printf("Monday\n");break;case Tuesday: printf("Tuesday\n");break;case Wednesday: printf("Wednesday\n");break;case Thursday: printf("Thursday\n");break;case Friday: printf("Friday\n");break;case Saturday: printf("Saturday\n");break;}}
查看答案
搜索结果不匹配?点我反馈
更多问题