Smart keypad -1

the code ain’t giving the correct ans

Plz send the code by saving on ide so that I could check it.