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();
}
}