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 x = scanner.nextInt();
			if( x%3 ==0 ) {
				System.out.println("No");
			}else {
				System.out.println("Yes");
			}
		}
		
		scanner.close();
	}
	
}

Double click to view unformatted code.


Back to problem 20