C: Calculate discount price based on quantity input by user.


Write a program that will calculate the price for a quantity entered from the keyboard, given that the unit price is $5 and there is a discount of 10 percent for quantities over 30 and a 15 percent discount for quantities over 50.

Popular posts from this blog

C: Program That Calculates Pay Based On Salary And Hours.

C: Usage Of limits.h And float.h To Access Min And Max Constants.

C: Calculate Order Price Based On User's Input.