Friday, June 1, 2018

UVA - 12531 .cpp file

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

No comments:

Post a Comment