Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Scanner entrada = new Scanner(System.in);
- System.out.print("Nome: ");
- String nome = entrada.nextLine();
- System.out.print("Peso: ");
- int peso = entrada.nextInt();
- System.out.print("Altura: ");
- double altura = entrada.nextDouble();
- double imc = peso / (altura * altura);
- System.out.print("O seu IMC e: " + imc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement