- 4
The store man wants to give the discount of 15% on 10000 & 5% less than it calculate and display the bill, discount and pay amou
use only if statement
5 odpowiedzi
+ 4
price * (.95 - .1 * (price >= 10000))
I hope I understood correctly
+ 3
Which sane person uses if-statements for fixed values?
+ 3
I understood that it was 15% discount if the price is of at least 10000, else 5% discount
I am not fluent in English so it is really possible that I misunderstood though
Either way, the formula can be changed a little to match your understanding easily :)
+ 2
Which sanrle person uses if-statements for fixrf values?
0
send me the program