Use Ternary Operator for the following if construct:
Attachments:
Answers
Answered by
0
Answer:
i) p=(s>5000)? s*5/100:s*10/100;
ii) max=(a>b)?(a>c)?a:(b>c)?b:c;
Similar questions
Computer Science,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Math,
6 months ago
Chemistry,
10 months ago