✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Del siguiente fragmento de código:
int x = 10;
int y = 0;
int z = 1;
for (int i = 1; i <= x; i++){
if (i % 2 == 0){
y += i;
}else {
z += i;
};
i++;
};
cout << "x = " << x << ", ";
cout << "y = " << y << ", ";
cout << "z = " << z << endl;
¿Qué valores se imprimen por consola para las variables x, y y z?