Click Here to go back to the homepage.

Oddities Solution:


#include <iostream>
using namespace std;

int main(){
    int cases;
    cin >> cases;
    for (int i = 0; i < cases; i++){
        int temp;
        cin >> temp;
        if (temp%2 == 0)
            cout << temp << " is even";
        else
            cout << temp << " is odd";
        cout << endl;
        
    }
    
    return 0;
}