TOPIC

100% wrong answer

AleHiginoO asked 3 years ago

o que sera que estou fazendo de tao errado assim?? aqui esta meu codigo

#include<iostream>

using namespace std;

int main()
{
    int n, x=0;

    for (int i = 0; i < 5; i++)
    {
        cin >> n;
        if (n % 2 == 0)
            x++;
    }

    cout << x << " valores pares" << endl;

    return 0;
}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.