Computer Science, asked by vipuldudi25, 1 year ago

Java code for area and perimeter of square and circle???

Answers

Answered by ramarekha2005
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;
}}
Similar questions