摘要: #include <stdio.h>//int main(){ float a,b,c,d,t; printf("请输入4个整数\n"); scanf("%f%f%f%f",&a,&b,&c,&d); if(a>b) { t = a; a = b; b = t; } //a<b if(a>c) { 阅读全文
posted @ 2020-04-24 17:48 采姑娘的小蘑菇a 阅读(2441) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>//简单理解版int main(){ double x,money; scanf("%lf",&x); if(x<=100000) money=x*0.1; else { if(x<=200000) money = 100000*0.1+(x-100000)*0. 阅读全文
posted @ 2020-04-24 17:47 采姑娘的小蘑菇a 阅读(274) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){ int a,c,x1,x2,x3,x4,x5; printf("请输入一个不多于5位的正整数"); scanf("%d",&a); if(a/10000) { printf("%d为五位数\n",a); c = 5; } else { if 阅读全文
posted @ 2020-04-24 11:35 采姑娘的小蘑菇a 阅读(5078) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>/*90分以上'A' 80~89'B' 70~79‘C 60~69'D' 60分以下‘E’*/int main(){ float score; char grade; printf("输入成绩\n"); scanf("%f",&score); while(scor 阅读全文
posted @ 2020-04-24 10:56 采姑娘的小蘑菇a 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: /*y =x(x<1)y =2x-1(x>=1&&x<10)y =3x-11(x>=10) */#include <stdio.h>#include <math.h>int main(){ int x,y; printf("请输入x的值\n"); scanf("%d",&x); if(x>=1) i 阅读全文
posted @ 2020-04-24 10:30 采姑娘的小蘑菇a 阅读(3814) 评论(0) 推荐(0) 编辑
求投食~(点图即可)