Add iff statement and calculate/print y varibale.