如何编写C语言程序

2024-12-26 09:44:19
推荐回答(2个)
回答1:

代码如下:
//————————————————————————————
#include
#include
int main()
{
char s[100];
while(gets(s))
{
if(strcmp(s,"find me boring")==0)
printf("tell me\n");
else
printf("reply me\n");
}
return 0;
}
//————————————————————————————

回答2:

#include
#include
main()
{
char s[80];
gets(s);
if(strcmp(s, "find me boring")==0)
printf("tell me\n");
else
printf("reply me\n");
}