上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: #include <stdio.h>#include <math.h>//int main(){ int h; float d1,d2,d3,d4,x,y; printf("请输入坐标(x,y)\n"); scanf("%f%f",&x,&y); int x1=2,y1=2; int x2=-2,y 阅读全文
posted @ 2020-04-26 11:15 采姑娘的小蘑菇a 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑
摘要: #include <stdio.h>#include <math.h>#define M 1000int main(){ int i,k; printf("请输入一个小于%d的整数",M); scanf("%d",&i); if (i>M) { printf("输入数据不合要求,请重输一个小于%d的 阅读全文
posted @ 2020-04-23 17:35 采姑娘的小蘑菇a 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 方法一: #include <stdio.h>int main(){ float a,b,c,t; printf("输入a,b,c三个值,用,隔开\n"); scanf("%f,%f,%f",&a,&b,&c); if(a<b) { t = a; a = b; b = t; } if(a<c) { 阅读全文
posted @ 2020-04-23 17:13 采姑娘的小蘑菇a 阅读(3352) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>//d不能是整型 !! /*s<250 无折扣 s<1250<=s<500 0.02 1 500<=s<1000 0.05 2 3 1000<=s<2000 0.08 4 5 6 7 2000<=s<3000 0.10 8 9 10 11 3000<=s 0.15 阅读全文
posted @ 2020-04-23 16:46 采姑娘的小蘑菇a 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){ int a; int b; int sum; //sum = a+b;出错 ?? printf("请输入两个数 以空格或,隔开"); scanf("%d %d",&a,&b); sum = a+b; printf("%d + %d = %d 阅读全文
posted @ 2020-04-09 17:14 采姑娘的小蘑菇a 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页
求投食~(点图即可)