What is the value of variable z when the following program segment ends? int z; for(z=0; z<50; z++) {}
51
49
0
50