Asked by yaya

can you show me where is the wrong for this program..because it contains error..i don't know where is it wrong..help..tq.:)

import java.util.Scanner;

public class BMR {

public static void main(String[] args, int x)
{
Scanner keyboard = new Scanner(System.in);


int pound, inch,age;
double BMRmale,BMRfemale;

System.out.print("Enter your weight(pound) : ");
pound= keyboard.nextInt();

System.out.print("Enter your height(inches) : ");
inch =keyboard.nextInt();

System.out.print("Enter your age (years): ");
age =keyboard.nextInt();



BMRfemale=65+(4.3*pound)+(4.7*inch)–(4.7*age);

BMRmale=66+(6.3*pound)+(12.9*inch)–(6.8 x*age);


System.out.println();
System.out.println( BMRfemale + " BMR for female is:" +BMRfemale);
System.out.println( BMRmale+ " BMR for male is:" + BMRmale);

}
}

Answers

Answered by Steve
what does javac say about it?
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions