Rewrite the snippet, using ternary condition:
if(p>5000)
d=p*5/100;
else
d=p*2/100;

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.