Tuesday, January 27, 2015

JAVA Program to find the "Perimeter of a Circle".

JAVA Program to find the Perimeter of a Circle.
class Circle
{
  public static void main(String args[])
   {
     double r=5;
     double prmtr;
     prmtr=2*3.14*r;
     System.out.println("The Perimeter of Circle is : " +prmtr);
   }
}
 OUTPUT
http://indiancomputerwizard.blogspot.in/search/label/Java

0 comments:

Post a Comment

Blog Archive