Computer Science, asked by ThanmayArjun, 6 months ago

Write a program to the to find the area of square.

(Area=s*s)​

Answers

Answered by RayyanFarhat
1

Answer:

Input:-

class SquareArea

{

public static void main (String[] args)

{

//Value specified in the program itself

double side = 4.5;

//Area of Square = side*side

double area = side*side;

System.out.println("Area of Square is: "+area);

}

}

Explanation:

Output:-

Area of Square is: 20.25

Happy to help ☺

Similar questions