Versuch einmal vor die Variablendeklaration das Schlüsselwort volatile zu schreiben.

EDIT:
also so:
volatile int zahl=0;