View Code of Problem 20

#include<bits/stdc++.h>
using namespace std;
int main(){
	int x;
	while(cin>>x){
		int flag=0;
			if(x%3==0)flag=1;
			if(flag==1)cout<<"No"<<endl;
			else cout<<"Yes"<<endl;
		
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 20