摘要: #include <stdio.h> void main() { double a,rate,tax,profit; int b; printf("输入奖金数:"); scanf("%lf",&a); b=a/500; switch(b) { case 0:rate=0.00;break; case 阅读全文
posted @ 2019-04-25 16:15 史智宇 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<math.h>int main(){ int a,b,c,t; scanf("%d,%d,%d",&a,&b,&c); if(a>b){ t=a; a=b; b=t; } if(a>c){ t=a; a=c; c=t; } if(b>c){ t=b 阅读全文
posted @ 2019-04-25 15:21 史智宇 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int year; printf("input the year\n"); scanf("%d",&year); if((year%4==0&&year%100!=0)||(year%400==0)){ printf("year:%d,mon 阅读全文
posted @ 2019-04-25 14:36 史智宇 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main(){ char a,b,c,d,e; a=getchar(); b=getchar(); c=getchar(); d=getchar(); e=getchar(); putchar(a); putchar(b); putchar(c); put 阅读全文
posted @ 2019-04-25 14:13 史智宇 阅读(110) 评论(0) 推荐(0) 编辑