結果 : write boolean equation for nand and nor gate