global variable is undefined in function

Printable View