Classworkone

mail@pastecode.io avatar
unknown
java
19 days ago
489 B
2
Indexable
Never
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");
        }

    }
}
Leave a Comment