and operator

trying to get and operator to output correctly