专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > C语言

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

发布时间:2011-06-28 09:38:36 文章来源:www.iduyao.cn 采编人员:星星草
【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;
}

运行如下

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: