/* C code to calculate bill after appling discount */
#include <stdio.h>
int main() {
float cost, quantity, bill, discountedbill;
printf("Enter the cost of product\n");
scanf("%f", &cost);
printf("Enter the quantity of product\n");
scanf("%f", &quantity);
bill = cost * quantity;
discountedbill = bill - ((10.0 / 100.0) * bill); // Ensure floating-point division
printf("The Final Bill after discount is : %f\n", discountedbill);
return 0;
}