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

Subscribers:
772
Published on ● Video Link: https://www.youtube.com/watch?v=nPahYKMKsZA



Duration: 1:50
11 views
1


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.

Git repo: https://github.com/pereiradaniel/beginning_c/blob/master/ch3/exercises/3_3/exercise3_3.c
Blog: https://pereiradpg.blogspot.com/2023/01/c-calculate-discount-price-based-on.html







Tags:
C language
programming
tutorial
short programs