摘要: #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; cas 阅读全文
posted @ 2019-04-25 16:16 李天贤 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<math.h> int main(){ int a,b,c,y; scanf("%d,%d,%d",&a,&b,&c); if(a>b){ y=a; a=b; b=y; } if(a>c){ y=a; a=c; c=y; } if(b>c){ y 阅读全文
posted @ 2019-04-25 15:24 李天贤 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int year; printf("input the year"); scanf("%d",&year); if((year%400==0)||(year%4==0&&year%100!=0)) { printf("year:%d,mont 阅读全文
posted @ 2019-04-25 14:59 李天贤 阅读(90) 评论(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:12 李天贤 阅读(102) 评论(0) 推荐(0) 编辑