摘要: # include <stdio.h> int main() {int a,b,profit; float rate,tax; printf("input a's number:"); scanf("%d",&a); if(a>=5000) rate=0.15; else b=a/500; swit 阅读全文
posted @ 2019-04-25 15:48 201821430014 阅读(122) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main() {double a=0.0,b=0.0,c=0.0; printf("input three numbers:"); scanf("%lf,%lf,%lf",&a,&b,&c); if(a==b&&b==c&&a==c) printf(" 阅读全文
posted @ 2019-04-25 15:08 201821430014 阅读(88) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main() {int year,month=2,days; printf("input the year:"); scanf("%d",&year); if(((year%100!=0)&&(year%4==0))||((year%100==0)&& 阅读全文
posted @ 2019-04-25 14:15 201821430014 阅读(82) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h>int main(){int a,b,c,d,e;a=getchar();b=getchar();c=getchar();d=getchar();e=getchar();putchar(a);putchar(b);putchar(c);putchar(d);pu 阅读全文
posted @ 2019-04-25 13:54 201821430014 阅读(93) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> # include<math.h> int main(){ float x,y; scanf("%f%f",&x,&y); printf("z=%d\n",(int)(x+1/fabs(y))); printf("z=%15.6f\n",x+1/fabs(y) 阅读全文
posted @ 2019-04-11 15:17 201821430014 阅读(87) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main(){ char c1,c2; c1=97; c2=98; printf("c1=%c,c2=%c\n",c1,c2); printf("c1=%d,c2=%d\n",c1,c2); return 0; } 阅读全文
posted @ 2019-04-11 14:17 201821430014 阅读(99) 评论(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; } 阅读全文
posted @ 2019-04-11 14:10 201821430014 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-27 20:26 201821430014 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 恢复内容结束 阅读全文
posted @ 2019-03-01 21:36 201821430014 阅读(180) 评论(0) 推荐(0) 编辑