Answer:100
50
50
Explanation:The code first sets a global variable val equal to 100.
Then, a function example is defined which changes the value of the global variable val to 50.
When the global variable val is printed outside the function, it will have its original value of 100.
The function example is then called, which changes the value of val to 50 and prints it inside the function.
Finally, after the function call, the global variable val is printed again outside the function, which will now have the value 50.
So, the output is:
100
50
50