Computer Science, asked by vishalem2006, 4 months ago

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 sikarwarmala
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