Write a small basic program To find the Area and perimeter of square
Answers
Answered by
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