#include <stdio.h>
int main()
{
struct book {
char name[50];
float price;
float discount;
} book1;
printf("Enter book price : "); scanf("%f", &book1.
price); book1.discount = 0.1 * book1.price;
printf("\n\n\nBook : %s\n", book1.
name); printf("Price : %.2f\n", book1.
price); printf("Discount 10 percent : %.2f\n" "Total price : %.2f",
book1.discount,
book1.price - book1.discount);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKICAgIHN0cnVjdCBib29rIHsKICAgICAgICBjaGFyIG5hbWVbNTBdOwogICAgICAgIGZsb2F0IHByaWNlOwogICAgICAgIGZsb2F0IGRpc2NvdW50OwogICAgfSBib29rMTsKCiAgICBwcmludGYoIkVudGVyIGJvb2sgbmFtZSA6ICIpOwogICAgZ2V0cyhib29rMS5uYW1lKTsKICAgIHByaW50ZigiRW50ZXIgYm9vayBwcmljZSA6ICIpOwogICAgc2NhbmYoIiVmIiwgJmJvb2sxLnByaWNlKTsKICAgIGJvb2sxLmRpc2NvdW50ID0gMC4xICogYm9vazEucHJpY2U7CgogICAgcHJpbnRmKCJcblxuXG5Cb29rIDogJXNcbiIsIGJvb2sxLm5hbWUpOwogICAgcHJpbnRmKCJQcmljZSA6ICUuMmZcbiIsIGJvb2sxLnByaWNlKTsKICAgIHByaW50ZigiRGlzY291bnQgMTAgcGVyY2VudCA6ICUuMmZcbiIKICAgICAgICAgICAiVG90YWwgcHJpY2UgOiAlLjJmIiwKICAgICAgICAgICBib29rMS5kaXNjb3VudCwKICAgICAgICAgICBib29rMS5wcmljZSAtIGJvb2sxLmRpc2NvdW50KTsKCiAgICByZXR1cm4gMDsKfQ==