Skip to content

Instantly share code, notes, and snippets.

@peter279k
Created May 21, 2017 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peter279k/f30a16e4dea1a5ac8aca38bb6de9d5ca to your computer and use it in GitHub Desktop.
Save peter279k/f30a16e4dea1a5ac8aca38bb6de9d5ca to your computer and use it in GitHub Desktop.
TQC+ JAVA
import java.util.*;
class JPA02 {
static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
test();
test();
}
public static void test() {
System.out.println("Input:");
int num = input.nextInt();
if(num % 5 == 0 && num % 9 == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment