Program to calculate Area and Perimeter of Rectangle in Java

import java.io.IOException;


public class AreaPerimeterRectangle
{

public static void main(String[] args) throws NumberFormatException, IOException
{
System.out.println("Enter the length and width of the rectangle: ");
float length = Float.parseFloat(args[0]);
float width = Float.parseFloat(args[1]);
System.out.println("Area of the Rectangle is: "+length*width);
System.out.println("Perimeter of the Rectangle is: "+2*(length+width));
}
}

We Are Founder..