View Code of Problem 20

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()) {
			int n = scanner.nextInt();
			if(n % 3 == 0) {
				System.out.println("No");
			}
			else {
				System.out.println("Yes");
			}
		}
	}
}

Double click to view unformatted code.


Back to problem 20