Answers for "perimeter of rhombus in java"

1

perimeter of rhombus in java

import java.util.Scanner;
public class PerimeterOfRhombus
{
   public static void main(String[] args)
   {
      Scanner sc = new Scanner(System.in);
      System.out.println("Please enter side of rhombus: ");
      double side = sc.nextDouble();
      double perimeter = 4 * side;
      System.out.println("Perimeter of Rhombus is: " + perimeter);
      sc.close();
   }
}
Posted by: Guest on October-30-2020

Code answers related to "perimeter of rhombus in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language