3. Rewrite the fillowing if . .. else statement s using ternary operators. [2]
If(sale<=1000)
dis=0.0;
else
dis=sale*10.0/100;
Answers
Answered by
0
Answer:
Rewrite the Following Using Ternary Operator : If(Bill > 10000) Discount = Bill * 10.0/100; Else Discount = Bill ... discount = bill > 100 ? bill * 10.0 /100 : bill * 5.0 /100; ... Q 3.i | 2 marks.
Similar questions
Social Sciences,
1 month ago
Social Sciences,
4 months ago
Math,
4 months ago
Math,
10 months ago
Math,
10 months ago
Hindi,
10 months ago