TOPIC

wrong answer, funcionou no sts

Alan114 asked 3 years ago

String line = sc.nextLine(); String []vet = line.split(" "); int a = Integer.parseInt(vet[0]); int b = Integer.parseInt(vet[1]); int c = Integer.parseInt(vet[2]); int d = Integer.parseInt(vet[3]);

        if(b > c && d > a){
            if(c+d >a+b && (c > 0 && d>0)) {
                    if(a % 2 == 0) {
                        System.out.println("Valores aceitos");
                    }
                }
            }else {
            System.out.println("Valores nao aceitos");
        }

}

}

This topic was solved and cannot recieve new replies.