Saved Bookmarks
| 1. |
Rewrite the following using ternary operator :if (bill>10000)discount = bill * 10.0/100;elsediscount = bill * 5.0/100; |
|
Answer» discount = (bill > 10000)? bill * 10.0/100 : bill * 5.0/100; |
|