My code is not working , i am stuck in ternary conditional statement


#1


#2

@chipsurfer65594,
They are expecting you to assign the outcome character VALUE of
the ternary statement
(fuelLevel > 0)?'Y':'N';
to
the variable canDrive
like

char canDrive = (fuelLevel > 0)?'Y':'N';