Computer Science, asked by vinaysaini3106, 6 months ago

rewrite the following using ternary operator, if (p>5000)d=p*5/100, else d=2*p/100​

Answers

Answered by Anonymous
5

Answer: d = p>5000 ? p*5/100 : 2*P/100 ;

Explanation: No Explanation.

Similar questions