XCJungle

2019年4月25日

实验课2继续2

摘要: #include"stdio.h"int main(){ double a,rate,tax,profit; while(1){ scanf("%lf",&a); if(a<500) rate=0; else if(a<1000) rate=0.05; else if(a<2000) rate=0. 阅读全文

posted @ 2019-04-25 15:37 XCJungle 阅读(114) 评论(0) 推荐(0) 编辑

实验课2继续

摘要: #include "stdio.h" int main(){ float a,b,c,d=0; while(1){ scanf("%d%d%d",&a,&b,&c); if(a>=b){ if(a+b>c&&c+b>a) d=1; else printf("a,b,c is not triangle 阅读全文

posted @ 2019-04-25 14:53 XCJungle 阅读(148) 评论(0) 推荐(0) 编辑

实验课2

摘要: #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:14 XCJungle 阅读(87) 评论(0) 推荐(0) 编辑

导航