Computer Science, asked by lavyasurana14, 3 months ago

Rewrite the following program segment using ternary operator.
if(income>15000)
t = 5;
else
t=0;

Answers

Answered by imntshvrma
0

Answer:

t = ( income>15000 ) ? 5 : 0 ;

Similar questions