Rewrite the following using ternary operator?
If(rate>2000)
double
tax=35.5;
else
double tax=20.5;
Answers
Answered by
0
Answer:
double tax = (rate>2000) ? 35.5 : 20.5;
Similar questions