/* Program to compute the area of a circle */
class P15
{
public static void main(String args[])
{
double pi,r,a;
r=10.8; //radius of circle
pi=3.1416; //pi, approximately
a = pi*r*r; //compute area
System.out.println(" Area of circle is :"+a);
}
}
class P15
{
public static void main(String args[])
{
double pi,r,a;
r=10.8; //radius of circle
pi=3.1416; //pi, approximately
a = pi*r*r; //compute area
System.out.println(" Area of circle is :"+a);
}
}
0 comments:
Post a Comment