4个回答
2013-11-17
展开全部
//这戚清个就不袜罩用注释了吧
#include "stdio.h"
void main()
{
int i;
printf("输入1~7其中一个数字:");
scanf("%d",&i);
switch(i)
{
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: printf("April Fools' Day\n");break;
}
}
#include "stdio.h"
void main()
{
int i;
printf("输入1~7其中一个数字:");
scanf("%d",&i);
switch(i)
{
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: printf("April Fools' Day\n");break;
}
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-11-17
展开全部
#include<stdio.h>int main(void)
{
int week;
do{
scanf("%d",&week);
if(week == 1)
{
printf("Monday\n"让大);
}
else if(week ==2)
{
printf("老蔽Tuesday\n");
}
else if(week == 3)
{
printf("Wednesday\n");
}
else if(week == 4)
{
printf("Thursday\n");
}
else if(week == 5)
{
printf("Friday\n");
}
else if(week == 6)
{
printf("Saturday\n");
}
else if(week == 7)
{
printf("Sunday\n");
}
}while (week>侍滑州0 && week<8);
}
{
int week;
do{
scanf("%d",&week);
if(week == 1)
{
printf("Monday\n"让大);
}
else if(week ==2)
{
printf("老蔽Tuesday\n");
}
else if(week == 3)
{
printf("Wednesday\n");
}
else if(week == 4)
{
printf("Thursday\n");
}
else if(week == 5)
{
printf("Friday\n");
}
else if(week == 6)
{
printf("Saturday\n");
}
else if(week == 7)
{
printf("Sunday\n");
}
}while (week>侍滑州0 && week<8);
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-11-17
展开全部
#include "stdio.h" void main(){ intnDay; charcDay[7][10] ={"橡咐亩monday","tuesday","梁森wednesday","thursday","friday","saturday","简判sunday"}; scanf("%d",&nDay); printf("%s\n",cDay[nDay-1]);}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
引用jbpc90631c594的回答:
//这个就不用注释了吧
#include "stdio.h"
void main()
{
int i;
printf("输入1~7其中一个数字:");
scanf("%d",&i);
switch(i)
{
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: printf("April Fools' Day\n");break;
}
}
//这个就不用注释了吧
#include "stdio.h"
void main()
{
int i;
printf("输入1~7其中一个数字:");
scanf("%d",&i);
switch(i)
{
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: printf("April Fools' Day\n");break;
}
}
展开全部
输个小数直接GG
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询