Rewrite the following program segment using ternary operator.
if(income>15000)
t = 5;
else
t=0;
Answers
Answered by
0
Answer:
t = ( income>15000 ) ? 5 : 0 ;
Similar questions