Hi:
I did cut and paste this example from a tuterial and I was hoping that it will work. But my compiler, miracle C, did not even give me an error message. it just did not let it run. Will appriciate your help.
Sam
main()
{
float cost,tax,luxury,total;
luxury=0.0;
printf("Enter the cost of the item: ");
scanf("%f", &cost);
tax=cost*0.06;
if(cost>40000.0)
luxury=cost*0.005;
total=cost+tax+luxury;
printf("the total cost is %0.2f",total);
}