discount

CF

Discount Slabs

A shop has given discounts based on the price of purchase. There are N slabs. When the price falls between two slabs that is ith slab amount…
CF

Variable Discount

The program must accept an integer P which represents the price of an item in a supermarket as the input. The program must print the…