View Code of Problem 20

#include<iostream>
#include<cmath>
using namespace std;
//1 yes 2 yes 3 no 4 yes 5 yes 6 no 7 yes 8 yes 9 no
int main() {
	int n; 
	while(cin>>n) {
		if(n%3==0) cout<<"No"<<endl;
		else cout<<"Yes"<<endl;
	}
}

Double click to view unformatted code.


Back to problem 20