Computer Science, asked by adfrt, 9 months ago

Write a program in java to accept the area of a square and calculate the side of the square

Answers

Answered by Anonymous
3

import java.util.*;

public class Side

{

public static void main(String args[])

{

Scanner in=new Scanner(System.in);

float a,s;

System.out.println("Enter the area of the square");

a=in.nextFloat();

s=Math.sqrt(a);

System.out.println("Display the side of the square"+s);

}

}

Answered by Anonymous
0

import java.util.*;

public class Side

{

public static void main(String args[])

{

Scanner in=new Scanner(System.in);

float a,s;

System.out.println("Enter the area of the square");

a=in.nextFloat();

s=Math.sqrt(a);

System.out.println("Display the side of the square"+s);

}

}

Similar questions