Computer Science, asked by nehaaggarwal5471, 4 months ago

Write a program to take length of a side of the square from user and print the area of a square

Answers

Answered by tharunkrishna1611
0

Answer:

Explanation:

public class square

{

public static void main( int a)

{

System.out.println("Length of the square="+ a);

int area=-a*a;

System.out.println("Area of the square="+area);

}

}

Similar questions