Created
May 21, 2017 19:45
-
-
Save peter279k/f30a16e4dea1a5ac8aca38bb6de9d5ca to your computer and use it in GitHub Desktop.
TQC+ JAVA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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