I have some code for calculating properties of a circle:
package circleinfo; import java.util.Scanner; public class Circleinfo { public static void ma
r is an int, so r*2 is also an int, meaning that in your second print statement %f cannot be used. Try %d there instead.
r
int
r*2
%f
%d
Recall that %f is for floating point numbers while %d is for integers. This is outlined in the documentation of Formatter (see Format String Syntax).