My project involves four button as switch to turn on/off 4 led individually

Arduino-button as switch program

when i try to duplicate the code i.e change name of each button separately like reading1,reading2,....previous1,previous2

the program doesnt throw any error,but im not getting correct output

i even tried use array instead of creating variable like above,but no use

We can't see your code. Use code tags