Computer Science, asked by aarongeorge27, 3 months ago

Rewrite the following using ternary operator?


If(rate>2000)

double

tax=35.5;

else
double tax=20.5;

Answers

Answered by nithya353
0

Answer:

double tax = (rate>2000) ? 35.5 : 20.5;

Similar questions