Classworkone
unknown
java
a year ago
489 B
5
Indexable
import java.util.Scanner;
public class ClassworkOne {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num1 = sc.nextInt();
if(num1 % 5 == 0 && num1 % 7 == 0) {
System.out.println("Disqualified");
}
else if (num1 % 5 == 0 || num1 % 7 == 0) {
System.out.println("Qualified");
}
else {
System.out.println("Disqualified");
}
}
}
Editor is loading...
Leave a Comment