All pastes #188728 Raw Edit

TheLegace

public java v1 · immutable
·published 2006-10-02 13:18 UTC
rendered paste body
//Name: Vaibhav kapoor//Date: October 2, 2006//Assignment: Java Introduction Programs//Purpose: Using Math Methods (PI nd Power)import java.io.*;public class circle{  public static void main(String[] args) throws IOException  {    Console cs = new Console();    double radius = cs.readDouble();    double circumference = 2 * Math.PI * radius;    double area = Math.PI * Math.pow(radius, 2);    System.out.println("The circumference of the circle is " + circumference);    System.out.println("The area of the circle is " + area);  }}