Kartier Pohs

Tuesday, June 16, 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
JAVA Program to find the Perimeter of a Circle

No comments:

Post a Comment

Copyright 2015 @ Yogesh Prasad