//circumference.java
//program that calculates the area and circumference of a circle
import java.util.Scanner; //program uses class scanner
public class circumference{
//main method begins execution of Java application
public static void main(String args[]){
//create scanner to obtain input from the command line
Scanner input = new Scanner(System.in);
double a; //declares Area
double c; //declares circumference
double r; //declares the radius
System.out.print("Enter the radius"); //prompt
r=input.nextInt(); //read first number the user
c=2*3.14*r;
System.out.printf("The circumference is %d\n",c); //display circumference;
}//end method main
}//end class circumference