#include<stdio.h>
#include<math.h>
int main()
{
float c1, c2;
printf("请输入邮件重量:");
scanf("%f", &c1);
if (1 < c1)
c2 = 10 + ceil(c1 - 1.0) / 0.5 * 3;
else
c2 = 10;
printf("当前重量的邮费为:%f", c2);
}
把第一个printf()里面的%f和c1去掉