increment adds +2 instead of 1

i have an integer set to 0, inside of an interrupt i have the integer increment by 1 (num++; the integer is named num). then i output the integer to the serial monitor is shows 0 but when i press the button it goes up by 2 instead of 1. please help me

Help you with what?

bradleys:
i have an integer set to 0, inside of an interrupt i have the integer increment by 1 (num++; the integer is named num). then i output the integer to the serial monitor is shows 0 but when i press the button it goes up by 2 instead of 1. please help me

Is the input debounced ?
Have you got a pullup or pulldown resistor in place on the input ?

bradleys:
please help me

Certainly. Read this. You will find lots of good advice there.

UKHeliBob:
Is the input debounced ?
Have you got a pullup or pulldown resistor in place on the input ?

neither of these seemed to work. they skipped all of the if statements

It's time for you to post the code that causes the problem