FIND AREA OF PERIMETER CIRCLE - Carrier Study

Breaking

Home Top Ad

Responsive Ads Here

Friday, May 25, 2018

FIND AREA OF PERIMETER CIRCLE

class circle
{
float r;
void get(float x)
{
r=x;
}
void cal()
float a,p;
a=3.141 f*r*r;
p=2*3.141 f*r;
system.out.println("area of circle :" +a);
system.out.println("perimeter of circle :" +p);
}
}
class ex circle
{
public static void main(string args)
{
circle oc=new cirlce();
oc=get(2.3f);
oc.cal();
}
}

No comments:

Post a Comment