Computer Science, asked by NMV222, 11 months ago

write a java program to find the side of the square whose perimeter is 20 m​

Answers

Answered by fammozzwasim
5

<html>

<head><title>side of square</title></head>

<body>

<script language=javascript>

var p,s;

p=20;

s=p/4;

{

document.write(side of square=s+"<br>");

}

</script>

</body>

</html>

please mark as brainliest .....

Answered by stylishtamilachee
21

Answer:

public class Calc

{

void compute( )

{

double side, perm = 20 ;

side = perm / 4 ;

System.out.println("The side of square with perimeter 20m, is " + side + "m") ;

}

}

Output:

The side of square with perimeter 20m, is 5.0m

Java:

Java is a popular third-generation programming language, which can be used to do any of the thousands of things that a computer software can do. With the features it offers, Java has become the language of choice for internet and intranet applications. Java plays an important role for the proper functioning of many software-based devices attached to the network.

Similar questions