Java program to find the Area of the rectangle
Area Of the Rectangle
import java.util.*;
class Area
{
public static void main(String args[])
{
float len,bre,area=0;
Scanner sc=new Scanner(System.in);
System.out .print("Enter the length of rectangle: ");
len=sc.nextFloat();
System.out.print("Enter the breath of rectangle: ");
bre=sc.nextFloat();
area=len*bre;
System.out.print("Total area of the rectangle: "+area);
}
}
Happy Coding :)
Comments
Post a Comment