
/**
 *
 * circumference of circle calculation
 *
 * Written by: Roger Garside
 *
 * First Written: 2/Oct/96
 * Last Rewritten: 2/Oct/96
 *
 */

import java.lancs.* ;

public class Chapter6n3
    {

    /**
     *
     * main
     *
     */

    public static void main(String[] args) throws Exception
        {
	BasicIo.prompt("type the radius: ") ;
	double radius = BasicIo.readDouble() ;
	double circumference = 2 * Math.PI * radius ;
	System.out.print("a circle of radius " + radius) ;
	System.out.println(" has circumference " + circumference) ;
        } // end of method main

    } // end of class Chapter6n3

