Write a Java program for calculation of area and circumference of square
Answers
Answered by
0
Explanation:
Program: calculate area & perimeter of a square in java
import java.util.Scanner;
public class AreaAndPerimeterOfSquare {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) { ...
double side = scanner.nextDouble();
//Area of square is side * side. ...
//Print area up to two precision.
Similar questions