class vol
{
public static void main (String arg[])
{
double v, r;
r=4;
/* '4 ' is pre- define value of of radius(r)*/
v=4/3*(3.14*r*r*r);
System.out.println (" volume of the sphere is :"+v);
System.out.print("\n\n\t\tDeveloped by AhsAn....!!\n\n\n");
}
}
{
public static void main (String arg[])
{
double v, r;
r=4;
/* '4 ' is pre- define value of of radius(r)*/
v=4/3*(3.14*r*r*r);
System.out.println (" volume of the sphere is :"+v);
System.out.print("\n\n\t\tDeveloped by AhsAn....!!\n\n\n");
}
}
0 comments:
Post a Comment