View Code of Problem 20

import java.util.Arrays;
import java.util.Scanner;
/**
 * 
 * @author Ember
 *
 */

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

Double click to view unformatted code.


Back to problem 20