System.out.println("Widthof the house: ");
float hWidth = scanner.nextFloat();
float time = (yLength * yWidth - hLength * hWidth) / 2;
System.out.format("Time:%.3f", time);
}
}
Comments
Leave a comment