TOPIC

Nao consigo achar o erro

Gustavo Mota asked 7 months ago

import java.util.Locale; import java.util.Scanner;

public class Main {

public static void main(String[] args) {
    Locale.setDefault(Locale.US);
    Scanner sc = new Scanner(System.in);
    double A = sc.nextDouble();
    double B = sc.nextDouble();
    if (A <= 10 && B <= 10 && A>= 0 && B >= 0) {
    double MEDIA = (((A  3.5 ) + ( B  7.5 ))  / 11    );
    System.out.printf("MEDIA = %.5f%n  " , MEDIA);

sc.close();

}

} }*

Remember not post solutions. Your post may be reviewed by our moderators.

  • Pedro Leonardo replied 7 months ago

    Fala, Gustavo! double MEDIA = (((A 3.5 ) + ( B 7.5 )) / 11 ); Acredito que falta o operador aritmetico de multiplicacao () entre a nota e o peso. A 3.5 e b * 7.5