Uva 12531 Solution

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    while(cin >> n)
    {
        if(n%6 == 0)
            cout << "Y" << "\n";
        else
            cout << "N" << "\n";
    }

    return 0;
}

Comments