Computer Science, asked by Hados7967, 11 months ago

Write a small basic program To find the Area and perimeter of square

Answers

Answered by ashisha3p
1

Answer:

Explanation:

public class Maths

{

    void area(double s)

{

      double a=s*s;

      System.out.println("AREA OF SQUARE="+a);

}

void perimeter(double s)

{

     double p=4*s;

      System.out.println("PERIMETER OF SQUARE="+p);

}

}

Similar questions