Java code for area and perimeter of square and circle???
Answers
Answered by
1
class circle{
public static void main(double l, double r) {
double Area of a square =l*l;
double perimeter of a square=4*l;
double area of a circle=3.14*r*r;
double perimeter of a circle=2*3.14*r;
}}
public static void main(double l, double r) {
double Area of a square =l*l;
double perimeter of a square=4*l;
double area of a circle=3.14*r*r;
double perimeter of a circle=2*3.14*r;
}}
Similar questions