输入1~7中的任意一个数字,输出对应的星期几的英文单词.

2024-11-26 01:43:21
推荐回答(4个)
回答1:

#include"stdio.h" main() { int a; scanf("%d",&a); swith(a) { 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")...
这是我的中国科大一朋友写的,还有tst.exe以及main.c版本!

回答2:

#include
using namespace std;
int main()
{
char week[7][10]={"monday","tuesday","wednesday","thursday","friday","saturday","sunday"};
int n;
cin>>n;
if(n>0&&n<8)
cout<else
cout<<"invalid";
return 0;
}

回答3:

n different approaches to life as it was to try on a coat. The whole world, the whole future is stret

回答4:

switch 不是swith