1. 程式人生 > >【C語言程序】今天是祖國母親的生日,特意編寫一個小程序,為祖國母親慶生~

【C語言程序】今天是祖國母親的生日,特意編寫一個小程序,為祖國母親慶生~

一個 img ges birt efi people print log blog

#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;
}

技術分享

【C語言程序】今天是祖國母親的生日,特意編寫一個小程序,為祖國母親慶生~