29.2k views
4 votes
What is the value of y after the following code is executed?

int x = 20, y = 30;
do
{
int z;
z = 3 * ( y

User Varo
by
8.8k points

1 Answer

3 votes

Answer:

30

Step-by-step explanation:

If we talk about C# I can simply say that y stay like that since int z is another declared variable and y is another (not the same)

User Antonin Cezard
by
7.6k points