Hello, I tried to compile the code for PIC16F877A, but it said "not enough rom". The memory was not sufficient, so I compiled the code for PIC18F4523. Check the simulation. There is a small problem. after doing the calculation it is not displaying the values. Otherwise it is working fine.
You have to press a switch first only then you can use the keypad. After pressing the switch, enter some value like 45 and then press the division key on the keypad.