0

Measure Total Expenses

While purchasing an item, discount of 10% is offered if the purchasing amount is more than 1000. If quantity and price per item are input through keyboard, write a program to calculate total expenses in c program

28th Apr 2018, 2:51 PM
Jordan
Jordan  - avatar
1 Resposta
+ 1
return (n > 1000) ? n * 0.9 : n;
28th Apr 2018, 4:40 PM
Timon Paßlick