logo

Crowdly

Browser

Add to Chrome

Del siguiente fragmento de código: int x = 10; int y = 0; int z = 1; for...

✅ 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?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on campusvirtual.usergioarboleda.edu.co?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome