Equal sign operator in a key matrix calculator

Please someone help me how to make a program in c that when I push a button its equivalent is equal sign so I can output an answer. I have already a code for my matrix type keypad that can out put its value to the LCD. Thank you very much in advance.