#include <iostream>
using namespace std;
int main()
{
cout << "Input number of values : ";
int num;
cin >> num;
int counter = 0;
int i;
while (counter < num)
{
cin >> i;
if (i % 2 == 0)
{
cout << i << " Is even ";
}
else
{
cout << i << " is odd ";
}
counter++;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewoJY291dCA8PCAiSW5wdXQgbnVtYmVyIG9mIHZhbHVlcyA6ICI7CiAgICBpbnQgbnVtOwoJY2luID4+IG51bTsKICAgIAogICAgaW50IGNvdW50ZXIgPSAwOwogICAgaW50IGk7CiAgICB3aGlsZSAoY291bnRlciA8IG51bSkgCiAgICB7CiAgICAgICAgY2luID4+IGk7CiAgICAgICAgCiAgICAgICAgaWYgKGkgJSAyID09IDApCiAgICAgICAgewogICAgICAgICAgICBjb3V0IDw8IGkgPDwgICIgSXMgZXZlbiAiOwogICAgICAgIH0KICAgICAgIGVsc2UgCiAgICAgICB7CiAgICAgICAgICAgICAgICBjb3V0IDw8IGkgPDwgIiBpcyBvZGQgIjsKICAgICAgIH0KICAgICAgICAKICAgICAgICBjb3VudGVyKys7CiAgICB9CiAgICAgCiAgICAKICAgIHJldHVybiAwOwp9