2019年4月25日

2.4

摘要: # include <stdio.h>int main(){ int a,b,profit;double rate,tax;printf("input a's number:");scanf("%d",&a);if(a>=5000)rate=0.15;else b=a/500;switch(b) { 阅读全文

posted @ 2019-04-25 16:12 an同学 阅读(508) 评论(0) 推荐(0)

2.3

摘要: # include <stdio.h>int main(){ printf("请输入三个数字\n"); float a,b,c; scanf("%f%f%f",&a,&b,&c); if(a+b<=c||a+c<=b||b+c<=a) printf("a,b,c不能构成三角形"); else if( 阅读全文

posted @ 2019-04-25 16:04 an同学 阅读(406) 评论(0) 推荐(0)

2.2

摘要: # 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)&&(yea 阅读全文

posted @ 2019-04-25 14:41 an同学 阅读(467) 评论(0) 推荐(0)

2.1

摘要: # 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);p 阅读全文

posted @ 2019-04-25 14:27 an同学 阅读(241) 评论(0) 推荐(0)

导航