Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
479 B
1
Indexable
Never
public class Zad1 {
    public static void main(String[] args) {


        double number = -10;

        if (number < 12 && number > Double.NEGATIVE_INFINITY) {
            System.out.println("liczba nalezy do zbioru A");
        }
        if (number < 14 && number > -3) {
            System.out.println("liczba nalezy do zbioru B");
        }
        if (number <12 && number > 4) {
            System.out.println("liczba nalezy do zbioru C");
        }
    }
}