✅ 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;
};