摘要: #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) 编辑
求投食~(点图即可)