In this c program, we ask the user to input the price of the item and number of items(quantity) purchased.…