Local and Global Variable

Program:

Output:

The value of a: —5

The value of num: —50