Using ternary operators:
if(sale>=25000)
dis=5000;
else
dis=250;
Answers
Answered by
9
dis=sale>=25000?5000:250;
Similar questions