public class Main {
public static void main(String ... args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Введите ваш пол:");
String gender = sc.nextLine();
if(gender.equals("Мужчина")) {
double d = (x - y) * z;
System.out.println("Вес=" + d);
}
}
}