摘要: 1. #include<stdio.h>int main(){ int a,b,sum; a = 123; b = 456; sum = a + b; printf("sum is %d\n",sum); return 0;} 2. #include<stdio.h>int main(){ char 阅读全文
posted @ 2019-04-08 15:03 雲中 阅读(143) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <stdlib.h>#include <time.h>int main() { int i; char c,gu; srand((unsigned)time(NULL)); c=6; gu=rand()%6+1; for(i=1;i<=100;i 阅读全文
posted @ 2019-03-24 09:55 雲中 阅读(163) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-03-08 18:17 雲中 阅读(83) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main(){int year;for(year=2000;year<=2500;year=year+1){if (year%4!=0){ printf("%d不是闰年\n",year);}else if(year%100!=0){ printf("%d是 阅读全文
posted @ 2019-03-08 18:15 雲中 阅读(160) 评论(0) 推荐(0)