#include main() { int day; float price, percentage, taken, limit; printf("\nEnter original price of item: "); scanf("%f", &price); printf("Enter percentage reduction per day: "); scanf("%f", &percentage); day = 0; limit = price / 2; while (price >= limit) { taken = price / 100 * percentage; price -= taken; day++; } printf("\nIt took %d days for the item to go below half price!\n", day); }