logo

Crowdly

Browser

Add to Chrome

Analizar el siguiente fragmento de código y determinar el resultado mostrado en ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Analizar el siguiente fragmento de código y determinar el resultado mostrado en consola si n = 5.

int main(){

cout << "Ingrese un valor numerico" << endl;

int n;

int x = 0;

cin >> n;

int i = 0;

while(i <= n){

if ((i % 2) == 0){

x += n / 2;

};

i++;

};

cout << "El resultado es:\t" << x << endl;

return 0;

};

0%
0%
0%
100%
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