Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercicio URI1005 #1

Open
Markinho10 opened this issue Jun 17, 2021 · 1 comment
Open

Exercicio URI1005 #1

Markinho10 opened this issue Jun 17, 2021 · 1 comment

Comments

@Markinho10
Copy link

Professor Nelio Alves, tudo bem?
Estou cursando seu curso de Java primeiros passos, to gostando bastante, cheguei na parte dos exercicios da uri.
No exercicio 1005, no eclipse ta rodando normal, porem, quando copio e colo o codigo na uri, da erro. copiei seu codigo da correcao, e mesmo assim continua dando erro

@trueigor
Copy link

trueigor commented Oct 6, 2022

  • tenta meu codigo amigo

import java.util.Scanner;
import java.util.Locale;
public class Main {

public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	Locale.setDefault(Locale.US);
	double A, B, avg;
	A = sc.nextDouble();
	B = sc.nextDouble();
	avg = (A*3.5 + B*7.5) / 11.0;
	System.out.printf("MEDIA = %.5f%n", avg);
    
	sc.close();
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants