C Program to calculate different discount for different Bill amount
Get price and quantity of a product, calculate bill amount, claculate 10% discount for the billamount 5000 and above, 5% discount for the bill amount 1000 and above.
printf("Enter quantity and price:");
scanf("%lf %lf",&quantity, &price);
else if(amount > 1000)
amount = amount - discount;
chained conditional check is used here to check whether amount is greater than 1000 or greater than 5000. any one of the expression to calculate discount will be executed.