Rewrite the following using ternary operator :
if(bill > 10000)
disc = bill * 10.0/100;
else
disc = bill * 5.0/100;
Answers
Answered by
0
Explanation:
Rewrite the Following Using Ternary Operator : If(Bill > 10000) Discount = Bill * 10.0/100; Else Discount = Bill * 5.0/100; Concept: Operators in Java.
Similar questions
Accountancy,
3 months ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
English,
7 months ago
Math,
7 months ago
History,
11 months ago
Environmental Sciences,
11 months ago