a) if x variable is 0 , output will be nothing. Otherwise, it will be error (zero division (d = 0))
b)Output will be error (zero division (d = 0))
c) Output is
"You choose "y"
You choose quit"
Second line is shown because there is no "break" statement after 'y' case
d) Output is nothing because it's only if x is not 10
e) Output is
30(local)
10(global)
Comments
Leave a comment