how to write c program code of simple logic gates whose results are on leds through parallel ports