Area of Rectangle

April 11, 2016, by Hamid Siddiqui

/**
 * @author Hamid Siddiqui
 * https://github.com/inventionsbyhamid
 * https://www.quora.com/profile/Hamid-Siddiqui
 *
 * @program To find area of rectangle given its length and breadth
 */

import java.io.*;

class AreaRectangle {

    public static void main(String args[]) throws IOException {

        BufferedReader k = new BufferedReader(new InputStreamReader(System.in));

        System.out.println("Enter length");
        double length = Double.parseDouble(k.readLine());
        System.out.println("Enter breadth");
        double breadth = Double.parseDouble(k.readLine());

        double area = length*breadth;
        System.out.println("Area = " + area);
    }
}
Sample Input/Output




Area of Circle →

← Sum