#include <stdio.h>
int main()
{
double Itemweight,money;
Itemweight = money = 0;
printf("please input the weight of the item you want to transform:");
scanf("%lf",&Itemweight);
if(Itemweight > 50)
{
money += 50 *0.15 + (Itemweight -50)*0.25;
printf("the weight of this item is %lf\nthe money of this item is %lf",Itemweight,money);
}
else if(Itemweight >= 0)
{
money += Itemweight*0.15;
printf("the weight of this item is %lf\nthe money for this item is %lf",Itemweight,money);
}
else
{
printf("???");
}
return 0;
}