摘要: #include <stdio.h> #include <math.h> int main(){ double a,b,c,d; int e; scanf("%lf",&a); e=a/500; switch(e) { case 0:b=0;break; case 1:b=0.05;break; c 阅读全文
posted @ 2019-04-22 15:34 akjhjk 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <math.h> int main(){ double a,b,c,d; scanf("%lf",&a); if(a<500){ b=0; c=a*b; d=a-c;} else if(a>=500&&a<1000){ b=0.05; c=a* 阅读全文
posted @ 2019-04-22 15:13 akjhjk 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <math.h> int main(){ int a,b,c,d; scanf("%d%d%d",&a,&b,&c); if(a>b){ d=b; b=a; a=d; } else if(a>c){ d=c; c=b;b=a; a=d; } e 阅读全文
posted @ 2019-04-22 14:51 akjhjk 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){ int year,days=0; printf("input the year:"); scanf("%d",&year); if(year%4!=0){ days=28; } else if(year%100!=0){ days=29;  阅读全文
posted @ 2019-04-22 14:31 akjhjk 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){ char a,b,c,d,e; a=getchar(); putchar(a); b=getchar(); putchar(b); c=getchar(); putchar(c); d=getchar(); putchar(d); e=ge 阅读全文
posted @ 2019-04-22 14:19 akjhjk 阅读(91) 评论(0) 推荐(0) 编辑