View Code of Problem 20

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

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

	}
	
}

Double click to view unformatted code.


Back to problem 20