- 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

6th Nov 2017, 9:18 PM
Muhammad Waqas
7 ответов
+ 4
price * (.95 - .1 * (price >= 10000)) I hope I understood correctly
6th Nov 2017, 10:42 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 3
Which sane person uses if-statements for fixed values?
6th Nov 2017, 11:37 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 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 :)
7th Nov 2017, 4:08 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
Which sanrle person uses if-statements for fixrf values?
6th Nov 2017, 11:37 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
send me the program
7th Nov 2017, 4:03 AM
Muhammad Waqas