Computer Science, asked by akshansh52, 1 year ago

a compiled program of java to find area of square

Answers

Answered by Navakris
0

import java.util.Scanner;

public class AreaOfSquare {

public static void main(String[] args) {

 Scanner in = new Scanner(System.in);

 System.out.println("Enter the side value : ");

 int a = in.nextInt();

 System.out.println("Area of square is : " + (a*a));

}

}


Similar questions