Java program to find perimeter of square
java program to calculate area of square
import java.util.Scanner;
public class FindAreaOfSquare
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("Please enter side of square: ");
double side = sc.nextDouble();
// formula area of square = side * side
double area = side * side;
System.out.println("Area of square is: " + area);
sc.close();
}
}