I am new to programming so I apologize beforehand. I am running a program and am having a problem with the System.out.printf method in Java. I know everything
System.out.printf
%d represents an integer; you want to use %f for a double. See the formatting string syntax in the Javadoc
%d
%f