当前位置:   article > 正文

【C语言程序】今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~...

【C语言程序】今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~...
#include <stdio.h>
#define N 80
int main(int argc, char *argv[]) {
char a[N];
printf("Hello,where are you from?\n");
gets(a);
if(strcmp(a,"China")==0||strcmp(a," the People's Republic of China")==0)
printf("Wow,i am a Chinese,too.\nToday is a birthday of our country.\nLet's wish our motherland to have a happy birthday!");
else printf("Nice to meet you!");
 return 0;
}

转载于:https://www.cnblogs.com/levelstrcpy/p/7617603.html

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号