Output Questions for Class 10 ICSE Computer Applications
Rewrite the following using ternary operator:
if(income < 10000)
tax = 0;
else
tax = 12;
Java
Java Operators
104 Likes
Answer
tax = income < 10000 ? 0 : 12;
Answered By
48 Likes
Rewrite the following using ternary operator:
if(income < 10000)
tax = 0;
else
tax = 12;
104 Likes
tax = income < 10000 ? 0 : 12;
Answered By
48 Likes