摘要: #include <stdio.h>int main(){ char a[5]; gets(a); puts(a); return 0;} #include <stdio.h> #include <math.h> int main(){ int year,a; printf("请输人年份y:\n") 阅读全文
posted @ 2019-04-11 14:58 Vaik134 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int a,b,sum; a = 123; b = 456; sum = a+b; printf("sum is %d\n",sum); return 0; } int main() { char c1,c2; c1=197; c2=1 阅读全文
posted @ 2019-04-11 14:31 Vaik134 阅读(120) 评论(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-27 21:12 Vaik134 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int year,a; printf("请输人年份y:\n"); scanf("%d",&year); if(year%400==0) a=1; else { if(year%4==0&&year%100!=0) a=1; else a 阅读全文
posted @ 2019-03-06 21:21 Vaik134 阅读(239) 评论(0) 推荐(0) 编辑