The length and breadth of a rectangle and radius of a circle are input through the keyboard. write a program to calculate the area and perimeter of the rectangle and the area and circumference of the circle
Answers
Answered by
3
class cal{
p.s.v.m( double l, double b, double r)
{
double area,peri,areac,circum;
peri =2*(l+b);
area= l*b;
areac =3.14*r*r;
circum =2*3.14*r;
S. O. P........
}}
p.s.v.m( double l, double b, double r)
{
double area,peri,areac,circum;
peri =2*(l+b);
area= l*b;
areac =3.14*r*r;
circum =2*3.14*r;
S. O. P........
}}
Similar questions